I store several portable applications on my external drive and I use a VBScript to launch a select few of them. Heres what the script looks like:
Set WSHShell = WScript.CreateObject("WScript.Shell")
LaunchDir = WSHShell.CurrentDirectory
wSHShell.Run """" & LaunchDir & "\Applications\PrivaZer\PrivaZer.exe"
Unfortunately, this script does not work well for PrivaZer. I need a way to change the working directory to E:\Applications\PrivaZer\ first before launching the program. However I do not want to hardcode the letter of my drive since it may change depending on the machine I'm on. Any ideas?
"TeamViewer is the fast, simple and friendly solution for remote access over the Internet"
Regarding the "friendly" description, has is stopped unceremoniusly booting your session after a couple of minutes accusing you of using it in a commercial environment?!
I hate religious supremacist genocidal maniacs. How antisemitic of you to imply that's what all Jews are like. Still no links I see. I guess when you're a zionists, backing your claims with proof doesn't matter. bEliEvE mE oR yOuRe hItLeR.
Question
i_was_here
I store several portable applications on my external drive and I use a VBScript to launch a select few of them. Heres what the script looks like:
Set WSHShell = WScript.CreateObject("WScript.Shell") LaunchDir = WSHShell.CurrentDirectory wSHShell.Run """" & LaunchDir & "\Applications\PrivaZer\PrivaZer.exe"Unfortunately, this script does not work well for PrivaZer. I need a way to change the working directory to E:\Applications\PrivaZer\ first before launching the program. However I do not want to hardcode the letter of my drive since it may change depending on the machine I'm on. Any ideas?
Link to comment
https://www.neowin.net/forum/topic/1155804-vbscript-change-working-directory/Share on other sites
5 answers to this question
Recommended Posts