doppelganger
08-15-2003, 12:12 AM
Regards all,
I am using the system command to invoke a batch file to create backups of the projects folder on exit from Maya. The problem is that when this command executes it takes a long time to complete and gives no visual cue as to what is happening or what the status is. Is there a way to echo the output of this batch file to the screen? I tried having system run the NT command "cmd" to invoke the batch file instead of just giving system() the path (example "cmd c:\backup.bat" ) in the hopes this would open a command window but no such luck. The command simply runs then prints output to the script editor once it terminates.
Originally I attached a system call running xcopy to the quit application event in userSetup.mel using a scriptJob thereby removing the need for a second script to call or a batch file but this proved to be impractical due to the lack of feedback from the script and the time it takes to complete would fool almost any user into thinking Maya had crashed.
Any reccomendations?
Thanks,
Scott (Mel novice and wannabe future TD)
I am using the system command to invoke a batch file to create backups of the projects folder on exit from Maya. The problem is that when this command executes it takes a long time to complete and gives no visual cue as to what is happening or what the status is. Is there a way to echo the output of this batch file to the screen? I tried having system run the NT command "cmd" to invoke the batch file instead of just giving system() the path (example "cmd c:\backup.bat" ) in the hopes this would open a command window but no such luck. The command simply runs then prints output to the script editor once it terminates.
Originally I attached a system call running xcopy to the quit application event in userSetup.mel using a scriptJob thereby removing the need for a second script to call or a batch file but this proved to be impractical due to the lack of feedback from the script and the time it takes to complete would fool almost any user into thinking Maya had crashed.
Any reccomendations?
Thanks,
Scott (Mel novice and wannabe future TD)
