Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shell function and setting a directory
Message
 
To
05/04/2002 20:27:58
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00641607
Message ID:
00642007
Views:
23
>>Using VB.Net, how can I execute a EXE and set the directory to that EXE's path?
>>
>>'''This works, but the directory is not set to this EXE's path.
>>Dim ProcID As Integer
>>ProcID = Shell("""C:\mypath\myexe.EXE""", AppWinStyle.NormalFocus)
>>
>>Thanks,
>>
>>Jerryt
>
>
>
>Try posting your question in the .Net forum.

You may execute batch file instead of exe.

MyBatch.bat:

c:\
cd \mypath
myexe.exe

ProcID = Shell("""C:\mypath\mybatch.bat""", AppWinStyle.NormalFocus)

HTH
Igor Gelin
Database Developer
Previous
Reply
Map
View

Click here to load this message in the networking platform