However, since the USB drive letter changes when I plugin to different computers, I'm having to edit the batch file every single time. Is it possible to write a script/program/something which can detect the current drive letter (of the USB drive) that it is run from and pass this drive letter to the SUBST command to load a virtual drive off a folder on the USB drive?
I can't just run the program off the USB drive as the setting file it uses has hard-coded links.
I'd really appreciate it if someone could help me write up a quick program. A script would not be all that preferable as a lot of the computers that I use block the use of vbs scripts. Best would be something which can be compiled into an exe. I myself am vaguely familiar with AHK scripts but I can't seem to find a command to detect current drive letter in AHK. What scripting language should I be looking at then? C#? VB?
I wonder how driving laws around the world will change. No way to really tell if people are using phone. Same with smart watches i guess even now and those silly built in tablets for controlling the car instead of buttons.
Google Chrome 149.0.7827.197 (offline installer) by Razvan Serea
The web browser is arguably the most important piece of software on your computer. You spend much of your time online inside a browser: when you search, chat, email, shop, bank, read the news, and watch videos online, you often do all this using a browser.
Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. Use one box for everything--type in the address bar and get suggestions for both search and Web pages. Thumbnails of your top sites let you access your favorite pages instantly with lightning speed from any new tab. Desktop shortcuts allow you to launch your favorite Web apps straight from your desktop. Chrome has many useful features built in, including automatic full-page translation and access to thousands of apps, extensions, and themes from the Chrome Web Store.
Google Chrome is one of the best solutions for Internet browsing giving you high level of security, speed and great features.
Important to know! The offline installer links do not include the automatic update feature.
Download web installer: Google Chrome Web 32-bit | Google Chrome 64-bit | Freeware
Download: Google Chrome Offline Installer 64-bit | Direct Link | 131.0 MB
Download: Google Chrome Offline Installer 32-bit | Direct Link | 119.0 MB
Download page: Google Chrome Portable
Download: Chrome ARM64 | Direct Link
View: Chrome Website | Release Notes
Get alerted to all of our Software updates on Twitter at @NeowinSoftware
Question
ramian
Hi,
I'm currently using a batch file to run SUBST to load a program off my USB drive
However, since the USB drive letter changes when I plugin to different computers, I'm having to edit the batch file every single time. Is it possible to write a script/program/something which can detect the current drive letter (of the USB drive) that it is run from and pass this drive letter to the SUBST command to load a virtual drive off a folder on the USB drive?
I can't just run the program off the USB drive as the setting file it uses has hard-coded links.
I'd really appreciate it if someone could help me write up a quick program. A script would not be all that preferable as a lot of the computers that I use block the use of vbs scripts. Best would be something which can be compiled into an exe. I myself am vaguely familiar with AHK scripts but I can't seem to find a command to detect current drive letter in AHK. What scripting language should I be looking at then? C#? VB?
Thanks!
Link to comment
https://www.neowin.net/forum/topic/606906-script-to-detect-current-drive-letter/Share on other sites
6 answers to this question
Recommended Posts