Jump to content

Running a compiled script from cmd prompt and having it not exit


 Share

Recommended Posts

Hi!

I have a question.

I run compiled scripts from a cmd/dos promt in XP.

Is there any way to have the compiled .exe file not exit until the script has run??

I run these script from a altiris server and as soon as the exe exits it starts another process, i would rather have it to wait until the script has run completely.

Martin

Link to comment
Share on other sites

Another way is to use More to pipe the output to screen so any use of ConsoleWrite is shown within the cmd prompt.

e.g. Test.exe|more

If you enter a series of commands in the prompt and do not want to wait for each one to complete before entering the next, what you can do is this trick.

1. Type an opening brace "(" then press Return. You will then get a more? prompt.

2. Add each command and press Return after each one entered.

3. Then type a closing brace ")" to close the cycle and commence the execution of those commands.

:)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...