Technical support and scripting issues
Moderators: Dorian (MJT support), JRL
- Automation Wizard
- Posts: 3355
- Joined: Mon Jan 10, 2005 6:22 pm
- Location: Iowa
I've had a program for many years that I revisited last week. The program took way too long to run so I started investigating today to see why. Found that running TaskList in a Macro Scheduler RunProgram> cmd window is taking up to 3 minutes. Opening a dos window, typing and running the equivalent line takes a second. I turned the following into an executable and ran it on a dozen different computers. The time to run varied but was never less than a minute. One computer took 212 seconds.
Running "tasklist /m > %temp%\modules.txt" in a standard cmd window takes a second. Why the big difference?
Code: Select all
RunProgram>cmd /c tasklist /m > %temp_dir%modules.txt
- Pro Scripter
- Posts: 136
- Joined: Sat Feb 05, 2005 11:35 pm
- Location: Holland
it has something to do with the /m
If i leave the /m out, it runs fast.
But to come to the original question: no i dont know why ....