Passing command to a new Window ....

Microsoft Windows xp professional w/serv...
April 18, 2011 at 13:38:23
Specs: Windows XP
Hi Guys,

I have batch file ..

@echo off
for /F %%A in (allworkstations.txt) do (
psexec \\%%A -u user -d -i -c \\network\test.exe /passive
REM wait a bit before proceeding to the next machine
ping -n 5 > nul
echo Done.

Is it possible to open a new cmd window for each computer from allworkstations.txt list ...
Right now it goes on by one in same window ...

I would like to open window for all computers in the list and execute the psexec command ..

start cmd.exe /k - from reading manual I need to use this not sure how to pass the commands etc ... ?

Thank you ... help would be appreciated.

See More: Passing command to a new Window ....

Report •

April 19, 2011 at 06:38:43
If you want to execute psexec concurrently while browsing your list, replace

psexec \\%%A -u user -d -i -c \\network\test.exe /passive 

start "" psexec \\%%A -u user -d -i -c \\network\test.exe /passive 

Report •
Related Solutions

Ask Question