I'm trying to shell a program that isn't an executable. I'm trying to do this in VB without the use of an extra batch file, but the only way I can seem to get this to run in cmd.exe is by changing to the directory first, then running the file. For instance in the batch file I do something like this to execute it.
cd c:\Program Files\Packages\1837SCS\
win32.simcfg
So in VB i've been playing around with this command:
Shell "cmd.exe /k cd c:\Program Files\Packages\1837SCS\ ????", vbNormalFocus
is there anyway I can run that file after changing to that directory? BTW, I can't shell the full path or cmd.exe with the full path either.
Start Free Trial