Sir Topham Hatt Posted August 27, 2019 Share Posted August 27, 2019 Hello Sorry if my terminology isn't quite right here. I have a utility that I need to run through command prompt. It's located in F:\somefolder\ Is there a way I can create a shortcut that will always open the cmd at location F:\somefolder\ ready for me to type what I need to? Link to comment Share on other sites More sharing options...
xendrome Posted August 27, 2019 Share Posted August 27, 2019 (edited) 2 minutes ago, Sir Topham Hatt said: Hello Sorry if my terminology isn't quite right here. I have a utility that I need to run through command prompt. It's located in F:\somefolder\ Is there a way I can create a shortcut that will always open the cmd at location F:\somefolder\ ready for me to type what I need to? cmd /K "cd F:\somefolder\" Make a shortcut to that Sir Topham Hatt 1 Share Link to comment Share on other sites More sharing options...
Brandon H Supervisor Posted August 27, 2019 Supervisor Share Posted August 27, 2019 you could create a .bat file with the following @echo off F: cd "F:\somefolder" start "" "app.exe" exit doing just F: will change the working drive of the file and then CD will take it to whatever folder you need edit: or do you mean you just need the cmd window to open pointed to that location? that can be accomplished similarly @echo off F: cd "F:\somefolder" cmd This will open the cmd prompt to that folder Sir Topham Hatt 1 Share Link to comment Share on other sites More sharing options...
Sir Topham Hatt Posted August 27, 2019 Author Share Posted August 27, 2019 Thanks both. I'll give these a go. Discovered the delights of a media downloading program that runs in a CMD window. Although have also found a nice GUI for it... Link to comment Share on other sites More sharing options...
cooky560 Veteran Posted August 31, 2019 Veteran Share Posted August 31, 2019 If you add the folder into the PATH variable, you can just type the name of the app from anywhere without making batch files or anything. before c:\somefolder\someapp.exe adding c:\somefolder\ to PATH "someapp.exe" Link to comment Share on other sites More sharing options...
+BudMan MVC Posted August 31, 2019 MVC Share Posted August 31, 2019 you know if you put that folder in your path, you don't need to be in that folder when you run that command you could be in any folder. Link to comment Share on other sites More sharing options...
Recommended Posts