How to issue command but not have it execute
Posted: 28 Mar 2023 19:56
I need to open up the command shell within a very specific directory, let's say "C:\My Project". I did a little bit of searching on the internet and found a very simple batch file.
This works fine but I need to have the letters "fc.exe" typed at the command prompt as soon as the command shell opens. I tried the following:
Start cmd.exe /k "fc.exe "
The problem with this is that it executes the fc.exe command. That's no good. The program needs arguments or parameters to run so running fc.exe by itself produces nothing.
Any solutions?
Code: Select all
cd /d %~dp0
Start cmd.exe
Start cmd.exe /k "fc.exe "
The problem with this is that it executes the fc.exe command. That's no good. The program needs arguments or parameters to run so running fc.exe by itself produces nothing.
Any solutions?