![]() ![]() ![]() ROBOCOPY E:\ Z: /move /e /LOG :BB_Move_Course_Backups. For example, you can use Windows Task Scheduler and SQL Server Agent. NET USE Z: \\10.20.102.225\coursebackups\BB_Course_Backups /user:cie oly2008 A complete VB.NET application to schedule DOS command tasks online Download source code - 441 KB Introduction There are many ways to schedule a task on a web server. Here is the file for this file: call C:\blackboard\apps\content-exchange\bin\batch_ImportExport.bat -f backup_batch_file.txt -l 1 -t archive The other server is giving an error if (0xFFFFFFFF) but that file is running a CALL C:\dir\dir\file.bat -options and I've used commands like that before in Server 2003. This is happening on 2 servers when trying to run commands from inside a BAT file. ROBOCOPY E:\BB_Maintenance_Data Z: /e /XO /FFT /PURGE /NP /LOG:BB_DB_Backups.txt Here is how my file looks: rem This will delete the files from BBLEARN_statsįorfiles -p "E:\BB_Maintenance_Data\DB_Backups\BBLEARN_stats" -m *.* -d -17 -c "cmd /c del This will delete the files from BBLEARN_cms_docįorfiles -p "E:\BB_Maintenance_Data\DB_Backups\BBLEARN_cms_doc" -m *.* -d -14 -c "cmd /c del This will delete the files from BBLEARN_adminįorfiles -p "E:\BB_Maintenance_Data\DB_Backups\BBLEARN_admin" -m *.* -d -10 -c "cmd /c del This will delete the files from BBLEARN_cmsįorfiles -p "E:\BB_Maintenance_Data\DB_Backups\BBLEARN_cms" -m *.* -d -10 -c "cmd /c del This will delete the files from attendance_bbįorfiles -p "E:\BB_Maintenance_Data\DB_Backups\attendance_bb" -m *.* -d -10 -c "cmd /c del This will delete the files from BBLearnįorfiles -p "E:\BB_Maintenance_Data\DB_Backups\BBLEARN" -m *.* -d -18 -c "cmd /c del This will delete the files from Logsįorfiles -p "E:\BB_Maintenance_Data\logs" -m *.* -d -10 -c "cmd /c del USE Z: \\10.20.102.225\coursebackups\BB_DB_Backups /user:cie oly2008 I have taken the network and copy options out of the file and it still does the same thing. The bat file I'm running actually deletes files older than 7 days using "forfiles" then I'm mapping a network drive, moving the files across the network using robocopy, and then closing the network connection. I can run this script from the command line directly, and it runs just fine. It says it successfully completes but I know it doesn't. I'm trying to run a BAT script from Task Scheduler in Windows 2008 R2 and it runs for 3 seconds and then stops. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |