Originally Posted By: NTDOC
A Shell out to the program should be hidden using the CMD redirects

Mmm, ok this works for this case:
runas('%windir%\system32\cacls.exe %windir%\BGInfo.bmp /E /C /G "Users":F' > nul,1,0)

but not for this:
runas("\\myserver\ofcscan\AutoPcc.exe > nul",1,0)

Currently I use a own program with Autoit to hide and start the program, but want use in the future the runnas utility, so it would be nice the have an /HIDE switch ...., or have anybody an other idea to hide the window for an .exe file?

Edited by JJ1 (2008-11-18 11:35 AM)