Hi there all,I've worked around with this script for NTBackup. The only thing is that:
1. Must get the shell command line to work.
2. I have to capture a error generated by NTBackup (No Tape), when executed as a batchfile.
Part of the script looks like this:
(The rest follows a little later) 
code:
$osbackuptype = "Normal"
$osbackupname = "@WKSTA $osbackuptype Backup"
$oslogfile = "$dir\Friday_Error_$server.log"
shell "%comspec% /c NTBackup Backup C: D: /T "$osbackuptype" /v /d "$osbackupname" /b /hc: on /l "$OSLogfile" /e"
If @Error<>0
Cls
Color y+/n
? "An error has occured while executing NT Backup...!"
The problem is that this won't generate a logfile...
If I write this line to a Batch file, there is absolutely NO problem, but I can't capture the "No Tape in Drive" error message...???!!??
For the batch file I use this:
code:
$SMsg1 = 'NTBackup Backup D: /T $osbackuptype /V /D "$osbackupname" /B /hc: on /l "$oslogfile" /e '
$SMsg2 = Chr(13) + Chr(10) + "NTBackup Eject"
$Temp1 = Open(1, "C:\Backup\Start_NTBackup.cmd", 5)
$Temp1 = WriteLine(1, $SMsg1)
$Temp2 = WriteLine(1, $SMsg2)
$Temp1 = Close(1)
? "Command file to start NTBackup was created..."
Shell '%comspec% /c "C:\Backup\Start_NTBackup.cmd"'
Any suggestions are welcome! 
Grtx, Eric
------------------
A l l Y o u r K I X A r e B e l o n g T o U s ! ! !
[This message has been edited by SLM (edited 02 May 2001).]