Problem with psexec

FB700_1968.exe

I have a script that works fine under 2003 but fails under 2008.
The command in question is psexec.


Command line :
psexec \SP702.xxx.internal -accepteula -w C:\Projects C:\PROGRA~1\Perforce\p4.exe revert …

Error message :
Error executing program : Failed to execute program. Error : The directory name is invalid

Worked On:
Server 2003 R2 32bits.

Failed On:
Server 2008 R2 64 bits.

Target system:
Server 2008 R2 standard 64 bits.

Also Tried:

Command line :
psexec \SP702.xxx.internal -u domain\build -p “PASSWORD” -accepteula -w C:\Projects -s C:\PROGRA~1\Perforce\p4.exe revert …

It also doesn’t matter if the target is p4.exe. It’s any application called from the Server 2008.

Responded via email.