Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

The command line is:

 

"C:\progra~1\sybase\sql anywhere 8\ dbeng8 c:\progra~1\sybase\shared\hademo\hammdemo.db"

 

So I tried:

 

Proc.StartInfo.FileName = "C:\Program Files\Sybase\SQL Anywhere 8\win32\dbeng.exe"

Proc.StartInfo.Arguments = "c:\program files\sybase\shared\hademo\hammdemo.db"

Proc.Start()

 

Which gives a file not found error.

 

Can a fresh set of eyes see where I missed this?

Read the Fovean Chronicles

Because you just can't spend your whole day programming!

Posted
Proc.StartInfo.FileName = "C:\Program Files\Sybase\SQL Anywhere 8\win32\dbeng.exe"

 

You have a "win32" in your .StartInfo line that's not in your command line. Could that be the problem? Also, is the filename "dbeng.exe" or "dbeng8.exe"?

Posted
You have a "win32" in your .StartInfo line that's not in your command line. Could that be the problem? Also' date=' is the filename "dbeng.exe" or "dbeng8.exe"?[/quote']

 

From the command prompt, you don'[t have to go all the way to Win32 to execute the program, however it IS dbeng8.exe, which you caught.

 

The actual method to open the program:

 


Dim Proc As New Process

Proc.StartInfo.FileName = "C:\Progra~1\Sybase\SQL Anywhere 8\win32\dbeng8.exe"
Proc.StartInfo.Arguments = "c:\progra~1\sybase\shared\hademo\hammdemo.db"
Proc.Start()
[/Code]

 

Thanks everyone - I knew this needed a fresh set of eyes

Read the Fovean Chronicles

Because you just can't spend your whole day programming!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...