Sign in to follow this  
Followers 0
cntour

about Multi processing

4 posts in this topic

I wrote a script to shut down remote PCs using "shutdown" command.

My problem is this command is time consuming and it takes a long time to shutdown all those 80 PCs on my list. It will take longer time before return error message if that PC is offline.

I am considering alternative to shut them down.

Any suggestions? Thanks a lot.

Share this post


Link to post
Share on other sites



If you are savvy, you will use Run() with the STDOUT flag and the PID returned and collect STDOUT into an array of buffers and check the buffers for success. I don't know if SHUTDOWN.EXE reports success within the STDOUT stream... but maybe it does.

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

Thanks Volly and Larry. I will ping them first.

I am considering split my list into 2 txt file. For example, I use "sd.exe list.txt" to shut down all PC. now I split the list.txt into list1.txt and list2.txt, and schedule them to run at the same time. Is that feasible?

Thanx!!

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