Connection To UNIX File Path?

Jun 13, 2011

I want to connect to a UNIX file path over our network and grab some .log files. Is this possible? If some do I need to do anything more than what I would do if I was opening files from a local path?

View 5 Replies


ADVERTISEMENT

Convert Unix File Path To Windows Path?

Jun 14, 2012

I'm using acrobat that returns unix paths instead of windows path's. So im wondering if there is a way in vb.net to convert the path to windows path.

i tried using:

docs(i) = javaScriptObj.path().ToString.Replace("/", "").Substring(1)
position = docs(i).IndexOf("")
docs(i) = docs(i).Substring(0, position) + ":" + docs(i).Substring(position + 1)

this only works on local files, but fails when im starting to use network drives.

View 1 Replies

Mdb Connection - Transfer File Path In Our Connection String

Aug 26, 2009

I'm facing a problem after installation any software setup that has a database in access(mdb file) How to I transfer file path in our connection string.

View 3 Replies

Acces Unix UNC Path From Within Application?

Aug 17, 2009

For the application im writing i need to access files on a network server. I have tried different ways, but none of them seem to work.When i try using impersonation i keep getting logon failure (1326). I did try few solutions i found on the net but none seem to work.

View 1 Replies

Unable To Run Unix Commands To Execute Processes On A Unix Server?

Jul 6, 2011

I was recently assigned to do some research on how to approach a project. Right now we have an old program written in tcl. From this tcl program ( running on VMS client computer), we are able to run unix commands to execute processes on a unix server. This is done via tcpip. Now, we are thinking of making upgrades to this system . We are wondering if this kind of thing was possible with Visual Basic. Are we able to run a VB program on windows computer to run UNIX commands on a server? If so, what issues might be brought up. If anyone has even the briefest guideline or tip on this,

View 3 Replies

[2005] Run A Unix Script On A Unix Machine Without Using A Third Party Software

Jan 8, 2009

Is there a way to run a unix script on a unix machine with VB .NET without using a third party software like Rebex ssh?

View 4 Replies

Extract File Path From A Connection String?

Feb 5, 2012

How do I extract the file path from the following connection string?[code]...

View 1 Replies

VS 2008 .DBF Connection String - Invalid File Path?

Sep 21, 2009

Dim dbconn As OleDbConnection
Dim DBCommand As OleDbDataAdapter
Dim DS As New DataSet
dbconn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:COLORsitedataCUFORHDR.dbf;Extended Properties=dBASE IV;")

[Code]...

I prefer SQL server but im afraid in this app I have no choice. I think the .DBF file is v III dBase according to a thrid party .dbf viewer. The code explodes on the DBCommand.Fill(DS) line, telling me I have provided and invalid file path. The path is good to go.

Should I be using a driver with a different provider? When I remove the Extended Properties parameter I get an error unrecognizable database format - hinting in this case the path is correct.

View 3 Replies

Store The Connection String In The App.config File That Include The Application.startup Path?

Nov 6, 2009

I'm creating window application with VB.NET and flatfiles.the problem is how do i store the connection string in the app.config file that include the application.startup path?

<add name="cn" connectionString="provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "data;Extended Properties=text;" />

i got some error when writing to app.config.

"Missing attribute value on attribute 'Application.StartupPath'."

View 1 Replies

Microsoft Binary File From A Unix Computer?

May 5, 2009

I'm working on a program that's an update from Microsoft Basic on unix to VB .net 2008 on the PC.The files that are on the Unix are Microsoft Binary files.How do I read a binary file and then input the data into a SQL table?

View 3 Replies

Path Of .zip file Has Spaces In It / It's Not Recognizing Path As Valid Path

Aug 22, 2006

I have a Access program and I'm using VBA code in the background to run Winunzip using shell command. Well, the path of the .zip file has spaces in it and it's not recongizing the path as a valid path. Is there a another way to tackle this problem besides the shell?I can't us pkzip either. Has you can see I had to use progra~1 instead of Program Files.[code]

View 2 Replies

C# :: .NET Write Text File For Unix System (Icinga Or Nagios)?

Nov 11, 2011

I want to create a file with VB.NET and I want to use this file for a Icinga or Nagios configuration.

View 1 Replies

VS 2005 System.Net.WebClient Whats The Best Way To Get Text File From Unix?

Dec 12, 2009

I need to parse a Unix text file so, I am using System.Net.WebClient to ftp into a Unix server then using the .DownloadFile() method to get the text file, but its coming in with the Unix end line ""; so is there a way to convert that to windows format while doing the DownloadFile method? I do re-read it after and fix it, I am just looking for a better way.

Or is there an alternate such as instead of a DownloadFile, and the two other steps above can I just read it into an array right off the Unix server?? If so then what method would I use?

View 4 Replies

Delete File On Server From A File Path From A Sql Database File Path?

Feb 4, 2010

I am having a big problem with deleteing a file form the server. I have the filename for a image stored in my SQL database. the problem is i am getting an error of "Illegal characters in path. " Here is the code below:Everything is working fine until the delete command.

Protected Sub DeleteButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim tmpEquipID As String = Request("EquipID")
Dim tmpImageID As String = (CType(FormView1.FindControl("ImageIDLabel"), Label).Text)
Dim d As New equippicsDataContext

[code]....

View 3 Replies

Check The Connection Of Server Path?

Mar 23, 2009

I want to check the connection of server path eg[ URL] whether exists or notI tried this System.IO.Directory.Exists("http://localhost/MyProject/ ")but it always return false.So does anybody know how to check it?

View 3 Replies

Sql - Relative Path Connection String .net?

Mar 30, 2011

Possible Duplicate: SQL Express Connection string - Relative to application location

I have a desktop application written in vb.net. The app uses an SQL Server express 2008 database (.mdf file).Currently i have the connection string as absolute path like this:

Dim ObjConnection As New SqlConnection("Data Source=.SQLEXPRESS;AttachDbFilename=C:UsersPantheoDocumentsVisual Studio 2010ProjectsFood Manager 2012(new)Food Manager 2012Food_CustomerDB.mdf;Integrated Security=True;User Instance=True")

[Code]...

View 5 Replies

Sql - Relative Path Connection String?

Jun 5, 2012

Possible Duplicate: SQL Express Connection string - Relative to application location I have a desktop application written in vb.net. The app uses an SQL Server express 2008 database (.mdf file).Currently i have the connection string as absolute path like this:

Dim ObjConnection As New SqlConnection("Data Source=.SQLEXPRESS;AttachDbFilename=C:UsersPantheoDocumentsVisual Studio 2010ProjectsFood Manager 2012(new)Food Manager 2

[code].....

View 1 Replies

Access A File Using Relative Path Or Virtual Path?

May 22, 2012

I am trying to read and display a file using MapPath as follows :

Response.ContentType = "Application/pdf"
Dim FilePath As String = MapPath("../Document/123.pdf")
Response.WriteFile(FilePath)
Response.End()

This procedure will work fine and display in the browser. However, if I save the file to C:Document123.pdf, how can I access this file using relative path in MapPath function. Is there an option to access the file which is saved out of IIS server? I am using vb.net 2003.

View 1 Replies

VS 2008 Connection (MS Access - Crystal Reports) - Set A New Path For Data Source During Runtime?

Jan 8, 2010

I have created a data source connection to an access db by using the wizard in vs2008. I have then used this as a data source for crystal reports. My user would like to put the database on a network and reference it there. Is there a way to set a new path for this data source during runtime?

View 4 Replies

VS 2008 - .txt File - Write The File Path So That Someone Else Can Download My Program And File And Read The File

Feb 27, 2012

Reading a .txt file in VB.net. My file path is C:UsersMyLilMulePepeDocumentsVisual Studio 2008Projectscurtain_calls.txt.

This is my line of Dim LoanOptionsFile As String = "C:UsersMyLilMulePepeDocumentsVisual Studio 2008Projectscurtain_calls.txt"

I can read the file when I run the program, but how do I write the file path so that someone else can download my program and file and read the file on their system?

View 3 Replies

2010 OleDb Text Connection String: "Not Valid Path"

Nov 7, 2010

I've been all over the help files and finally patched together a VB OleDb connection string for delimited text files:

Dim connection As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & fName & ";" & "Extended Properties=""text;HDR=YES;FMT=Delimited"""

"fName" is passed in by an open file dialog.In every case (for all paths) it throws: 'C:1_2010NormalFileNormal.csv' (or where ever it is pointed) is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.Since no path works, it must be a syntax error, but I'll be darned if I can see it.

Full code of this routine is:

Dim connection As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & fName & ";" & "Extended Properties=""text;HDR=YES;FMT=Delimited"""
Dim conn As New OleDbConnection(connection)

[code]....

View 2 Replies

Getting GMT As Unix Epoch?

Mar 28, 2009

I have to convert a data (not the current date) to GMT and represent it as a Unix Epoch.This is what I'm trying - it returns something that looks correct - but I'd like to know if anyone with more experience knows if I am doing this correctly.

Friend Function GetEpoch(ByVal dDate DateInteger
Return (dDate.ToFileTimeUtc DateTime(1970,10000000

[code].....

View 1 Replies

Run A Unix Script?

Jan 12, 2008

Is it possible for vb.net to run a unix script?

If so , how to? Which namespace should I use?

View 5 Replies

Get The Unix Timestamp In VB 2008?

Sep 18, 2010

I want to know if it is possible to get the Unix Timestamp in VB 2008? I have no idea on how to get it.

(Unix timestamp is the amound of seconds passed since 1 January 1970 00:00)

View 1 Replies

Access Oracle (UNIX) Directory From .NET?

Oct 27, 2009

We have an Oracle 11g R2(UNIX) server. A directory was created on this UNIX box for the purpose of uploading/downloading CSV files.I need to access this directory, programmatically from VB.Net in order to search for a specific file (a log file more precisely) and then open it it programmatically in Notepad from my Vb.Net application. I should also be able to delete or copy it to my local drive.I am trying to find a VB.Net code sample that would allow me to implement this: Read/Write/Open files on an UNIX directory.

View 5 Replies

C# System.PlatformID.Unix Vs. Linux?

Aug 8, 2010

I need to make some system calls in my C# applications.Unfortunately, this behaves differently on Linux than on UNIX.Now I used to switch the Operating system at runtime like this

If Environment.OSVersion.Platform = System.PlatformID.Unix Then
' Linux/Unix '
ElseIf Environment.OSVersion.Platform = System.PlatformID.MacOSX Then

[code].....

View 1 Replies

VS 2008 Connect To UNIX Server With VB?

Oct 25, 2009

Is there any possibility to develop an application using Visual Basic that connects to a unix server (using SSH) and run some commands? I will try to describe what i need : The user should enter the server adress, username and password!Than the user must enter some "filenames" and after pressing a button the application will run a command (e.g more "filename") and generates an output file with the result of his command!

View 5 Replies

Call A Program From A Unix Shell Script?

Jun 11, 2012

I need to be able to kick off a vb.net program on a windows server from a unix shell script on an AIX server. What what I need to do to make this possible? I'm a newbie on the .Net side, but I was thinking, maybe make the vb.net program some sort of web service then have the unix shell script invoke that somehow

View 2 Replies

Connecting To Unix And Calling A Shell Script?

Aug 15, 2011

I wanted to connect to unix and call a shell script program from dot net application (windows application).do i need to use MS Winsock control to connect to unix or is there any other best option?

View 3 Replies

Converting Unix Time From Mssql String

Jan 17, 2011

I have recently started programming in vb.net (or trying to) I have made a application that gets some info from a mssql server. I can get the information perfectly, but one of the items called "date" i get in to my program is a date field in UNIX time. Is there a easy way to convert that into GMT time?[ code]

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved