Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shell function and setting a directory
Message
 
À
05/04/2002 20:27:58
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00641607
Message ID:
00642007
Vues:
24
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform