From: someone watching on 30 Apr 2010 09:08 Can someone explain how to have a *.CMD window open, execute a program and STAY at the command prompt? All I know to try is this: @echo off calendar_popup (this is the program I want executed) but immediately after execution the window closes (unless I put a PAUSE statement) but I need the window to return to a command prompt (not close) TIA
From: Pegasus [MVP] on 30 Apr 2010 09:42 "someone watching" <nospam(a)bogusaddress.com> wrote in message news:OPgh7YG6KHA.6052(a)TK2MSFTNGP02.phx.gbl... > Can someone explain how to have a *.CMD window open, execute a program and > STAY at the command prompt? > > All I know to try is this: > > @echo off > calendar_popup (this is the program I want executed) > > but immediately after execution the window closes (unless I put a PAUSE > statement) but I need the window to return to a command prompt (not close) > > TIA > Try this: @echo off cmd /k calendar_popup
From: spamlet on 30 Apr 2010 10:39 I have a link to the cmd prompt on my quick launch bar. It stays open until I close it. Only if cmds are put in the 'run' box does cmd shut afterwards. Having the cmd prompt link is handy for running tracert and ipconfig - needed quite a lot in sorting out internet connection hassles. S "someone watching" <nospam(a)bogusaddress.com> wrote in message news:OPgh7YG6KHA.6052(a)TK2MSFTNGP02.phx.gbl... > Can someone explain how to have a *.CMD window open, execute a program and > STAY at the command prompt? > > All I know to try is this: > > @echo off > calendar_popup (this is the program I want executed) > > but immediately after execution the window closes (unless I put a PAUSE > statement) but I need the window to return to a command prompt (not close) > > TIA > >
From: someone watching on 30 Apr 2010 11:05 "Pegasus [MVP]" <news(a)microsoft.com> wrote in message Try this: > @echo off > cmd /k calendar_popup > Tried the /k switch, works great to keep a command prompt. Now the question is how to invoke TWO programs (in same window) and still have working CMD prompt. I've tried all kinds on combinations of /k switches, no /k switches, etc. No luck keeping command prompt! any other ideas? TIA
From: spamlet on 30 Apr 2010 11:14 PS: Right clicking on the link gives you a properties sheet where you can set it to run in a normal window of whatever size you want. S "spamlet" <spam.morespam(a)invalid.invalid> wrote in message news:%235bdBMH6KHA.5016(a)TK2MSFTNGP02.phx.gbl... >I have a link to the cmd prompt on my quick launch bar. It stays open >until I close it. Only if cmds are put in the 'run' box does cmd shut >afterwards. Having the cmd prompt link is handy for running tracert and >ipconfig - needed quite a lot in sorting out internet connection hassles. > > S > > > "someone watching" <nospam(a)bogusaddress.com> wrote in message > news:OPgh7YG6KHA.6052(a)TK2MSFTNGP02.phx.gbl... >> Can someone explain how to have a *.CMD window open, execute a program >> and STAY at the command prompt? >> >> All I know to try is this: >> >> @echo off >> calendar_popup (this is the program I want executed) >> >> but immediately after execution the window closes (unless I put a PAUSE >> statement) but I need the window to return to a command prompt (not >> close) >> >> TIA >> >> > >
|
Next
|
Last
Pages: 1 2 Prev: 16 bit programs Next: The "The folder is not empty" bug on file deletion in Windows Expl |