0

In powershell, how do you run multiple commands that might take different amount of time to complete
Let's say you have
command1: print pdf file.pdf
command2: scp file.pdf C:/abc/
command3: notepad log.txt

Does powershell wait for command1 to complete before starting command2?
If not, how do I wait until command1 is complete?

3
  • 2
    Please update the question with the actual commands as the current answer is it depends and it depends Commented Feb 7, 2021 at 1:22
  • Yes, but the process doesnt. Meaning you can run a command, and as long as that command run successfully itll go onto the next. Even if notepad.exe hasnt loaded all the way Commented Feb 7, 2021 at 2:09
  • @Abraham, I want to wait for the command to be completed. How can I scp a file if the file hasn't been printed completely yet. Commented Feb 7, 2021 at 2:13

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.