Doogie
03-28-2004, 08:48 PM
I'm trying to run a BAT file that's in a different folder than maya/bin (it's in the user's scripts forlder to be exact) and I'm having trouble getting the system command to work right. Here's my best guess at it:
system ("\"%USERPROFILE%\My Documents\maya\5.0\scripts\webUpdate.bat\"");
// Result: 'C:\Documents' is not recognized as an internal or external command, operable program or batch file.
//
typing in "%USERPROFILE%\My Documents\maya\5.0\scripts\webUpdate.bat" (with quotes) from the DOS prompt works super.
Any suggestions?
(oh, and im not worried, this is for NT only)
system ("\"%USERPROFILE%\My Documents\maya\5.0\scripts\webUpdate.bat\"");
// Result: 'C:\Documents' is not recognized as an internal or external command, operable program or batch file.
//
typing in "%USERPROFILE%\My Documents\maya\5.0\scripts\webUpdate.bat" (with quotes) from the DOS prompt works super.
Any suggestions?
(oh, and im not worried, this is for NT only)
