|
Answer» How do I run multiple cmd commands in a batch file?
I tried this and it works
Code: [Select]cmd /k "cd C:\Users\TE IUBESC!!!MAMI\OneDrive\Desktop\Sheesh"But after that the program stops doing anything. How can I add more commands after that? LIKE run this command right after the previous command then close the window?There is no NEED to use CMD /K
Code: [Select]cd /D "C:\Users\TE IUBESC!!!MAMI\OneDrive\Desktop\Sheesh" echo I am in this folder: %cd% echo Let's start notepad start "" "notepad.exe"This may help. https://ss64.com/nt/cmd.html
Quote /K Run Command and then return to the CMD PROMPT. This is useful for testing, to EXAMINE VARIABLES
|