A shelled Command Prompt cmd is executing many times within a loop. Each iteration appears to create a new process and I am running out of memory. When I go to Task Mgr, I see hundreds of cmd.exe processes. How can I execute cmd to reuse the same Command Prompt? Is there a switch or parameter?
(I currently use switch /k to hide window.) Sample code:
for z 0 to 500
a = "c:\winnt\system32\cmd.exe /k" & _
" net user /domain " & uid(z) & _
' do some processing
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.