keeping window open

Techno
11-09-2003, 05:53 PM
i was wondering if there is a way on keeping an MS DOS window open in VB when using shell

for example im executing a batch file which sets paths - however i dont want to close it since i want the user to use that window to execute commands etc...

i tried the /K switch (I think) but never worked

any ideas?

Sorky
11-09-2003, 07:29 PM
This worked for me...


Call Shell("CMD.exe /K c:\test.bat", vbNormalFocus)

Techno
11-11-2003, 03:28 AM
thx

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum