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?
For some reason when EU forced Microsoft to allow users to change the default browser and search provider in Windows (also no ads for Office and the likes) - it was good. But when it comes to Apple - then it's bad.
BTW, Apple would have gone out of business if Microsoft wasn't pressed by US government several decades ago. 😉
I understand Microsoft's intention here, at least I think I do.
There have been so many printer driver related problems over the years due to OEM printer drivers not be compatible with the latest Windows update, that Microsoft wants to eliminate those by controlling the printer driver updates and keeping them compatible with the latest Windows update.
That is okay as far it goes, but what it can do is put limitations on printers that wouldn't be there with OEM drivers since the OEM printer drivers are not universal drivers.
It's a tradeoff and one can only hope it doesn't turn all Windows printers into $69 Brother printers.
Vivaldi is a very unique browser. It's the only chromium based browser that has its own powerful and fully customizable UI. It even supports CSS like firefox based browsers do. If someone wants a powerhouse chromium based browser, Vivaldi is actually his only option. All other chromium based browsers just tweak the vanilla chromium UI. It also comes from an ethical company that has proved its ethics all these years. Something very rare in the chromium world... (all other companies which develop chromium based browsers own an ad company, Chrome, Edge, Brave, Opera etc).
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