I cannot change the drive with the attached code

y: &pause
cd ptls5.0 &pause
sdp describe Integration.dpk &pause
z: &pause
cd ptls5.0 &pause
dir &pause

I have these commands in the 1.cmd file. The first three are fined. The result of this is that after executing "sdp describe Integration.dpk & pause" I am given "to press any key to continue ..." after I pressed any key. The command line ends. Instead of changing the drive to z:>. What is wrong with him?

+3
source share
2 answers

If sdp is a .cmd or .bat file, change it to "call sdp ....."

+3
source

Is "sdp" another batch file? If so, you need to use call:

call sdp describe Integration.dpk &pause
+1
source

Source: https://habr.com/ru/post/1697917/


All Articles