views:

127

answers:

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

I have those commands in the 1.cmd file. First three are executed fine. The result of it is that after "sdp describe Integration.dpk &pause" is executed I'm given "press any key to continue..." after I hit any key. The command prompt quits. Instead of changing drive to z:>. What is wrong with it?

+1  A: 

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

call sdp describe Integration.dpk &pause
Greg Hewgill
+3  A: 

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

SqlACID