Search found 4 matches

by k4p
21 Jul 2010 10:38
Forum: DOS Batch Forum
Topic: RUNAS with wait for process exit.
Replies: 7
Views: 11999

Re: RUNAS with wait for process exit.

aGerman, no.. equivalently :)
by k4p
21 Jul 2010 10:16
Forum: DOS Batch Forum
Topic: RUNAS with wait for process exit.
Replies: 7
Views: 11999

Re: RUNAS with wait for process exit.

I tried that. Ofcourse RUNAS was return syntax error.
by k4p
21 Jul 2010 09:50
Forum: DOS Batch Forum
Topic: RUNAS with wait for process exit.
Replies: 7
Views: 11999

Re: RUNAS with wait for process exit.

runas /user:test "start /wait calc.exe"

File not found: "start /wait calc.exe" :-)
by k4p
21 Jul 2010 01:24
Forum: DOS Batch Forum
Topic: RUNAS with wait for process exit.
Replies: 7
Views: 11999

RUNAS with wait for process exit.

Need to start process ("runas") with waiting for results (like "CALL" or "start /wait").. But, how do that? Thx..

Now use this construction:

1:
FOR "skip=3 tokens=1" %%i IN ('tasklist') DO IF %%i equ %wayted_process% GOTO 1


%-) have a simplest solve?