Hi,

I have this problem with the line i need to run
 Code:
SHELL '%comspec% /c %systemroot%\system32\runnas.exe /user:rds\xxxxx "%logonserver%\netlogon\bginfo\bginfo.exe %logonserver%\netlogon\bginfo\rds.bgi /nolicprompt /silent /timer:0" /password:xxxx /env'
 

It tells me "The system cannot find the file specified"
When I copy and paste this into cmd it work no probs
 Code:
%systemroot%\system32\runnas.exe /user:rds\xxxxx "%logonserver%\netlogon\bginfo\bginfo.exe %logonserver%\netlogon\bginfo\rds.bgi /nolicprompt /silent /timer:0" /password:xxxx /env


Please can someone point out my problem for me must be something to do with the %COMSPEC%

Thanks


Edited by NaasMarais (2009-10-30 09:13 AM)
_________________________
KIX Scripting is the Bomb!!