Sign in to follow this  
Followers 0
Manus-Magnus

The Best Way To Manage The Cmd/dos Output ?

1 post in this topic

Hello,

I launch multiple scripts on multiple computers and store the ouput (from command line) in files.txt :

launched from autoit script:

Run(@ComSpec & " /c " & 'Scan.bat ' & $Nom_Machine, "", @SW_HIDE)

the content of the .bat is:

ping -n 1 %1 > Cache\Scan-%1.txt

psexec xxxx > Cache\Scan-%1.txt

Exit

note: it can have more commands, but here i put only one.

So, under Xp when i massively launch these scripts (lets say 100 and wait 1 minute all or majority of them terminated.) i get blue screen after few

hours of scan, or get some strange flicker showing the command line windows

without borders... Note that under NT4 all was working right.

This is not due to memory overload, since i make periodicall closes of the cmd.exe.

Anyway:

1. Is there a function that can manage dos/cmd output ?

2. Is the way i launch the scripts is OK or maybe another syntax should be better ? (without the comspec, or any other manner ?)

if anyone have ideas :whistle:

Share this post


Link to post
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
Sign in to follow this  
Followers 0