| | |
Windows Scheduled Tasks weirdness
![]() |
Basic Info:
I have a .bat file that gets executed by Windows Scheduled Tasks (on Win 2003 Server).
The .bat file calls a .vbs script.
The .vbs script moves a text file (which has its data already comma delimited - no quotes) from a drive on the server to a network drive and changes the extension to .csv.
The script then copies the .csv file to a subdirectory in that network drive.
Finally, the script emails the .csv file as an attachment.
Error checking occurs if the original text file is not located on the server and emails our group a notificaton.
The account used by Scheduled Tasks to execute the .bat file is an Admin account on the server.
The script always works Whenever I log into the server (using the same Admin account that is used by the
Scheduled Tasks) and double click the .vbs script or manually right-click on the Scheduled Task and select "Run".
Everything worked fine for three days in a row. I'm not aware of anything else that has changed. I have seen this happen before where a script works fine for a while, then for some reason, doesn't run for a while, and then starts to run fine again.
Problem:
It seems like the Scheduled Task is not executing the .bat file even though teh Scheduled Task indicates that it has executed for that day (after the file are there).
Any ideas?
I have a .bat file that gets executed by Windows Scheduled Tasks (on Win 2003 Server).
The .bat file calls a .vbs script.
The .vbs script moves a text file (which has its data already comma delimited - no quotes) from a drive on the server to a network drive and changes the extension to .csv.
The script then copies the .csv file to a subdirectory in that network drive.
Finally, the script emails the .csv file as an attachment.
Error checking occurs if the original text file is not located on the server and emails our group a notificaton.
The account used by Scheduled Tasks to execute the .bat file is an Admin account on the server.
The script always works Whenever I log into the server (using the same Admin account that is used by the
Scheduled Tasks) and double click the .vbs script or manually right-click on the Scheduled Task and select "Run".
Everything worked fine for three days in a row. I'm not aware of anything else that has changed. I have seen this happen before where a script works fine for a while, then for some reason, doesn't run for a while, and then starts to run fine again.
Problem:
It seems like the Scheduled Task is not executing the .bat file even though teh Scheduled Task indicates that it has executed for that day (after the file are there).
Any ideas?
Here is what I just noticed:
One task is set to run at 10:58 AM, the other at 10:59 AM. I logged into the server just after 10:58 AM but before 10:59 AM. The 10:58 task showed that it it ran (but didn't do anything with the file). So I watched the server clock until 10:59. At 10:59 the task executed and the file was moved. Is there a windows permission that does not allow moving files from a server to another network drive unless that account is actually logged in?
One task is set to run at 10:58 AM, the other at 10:59 AM. I logged into the server just after 10:58 AM but before 10:59 AM. The 10:58 task showed that it it ran (but didn't do anything with the file). So I watched the server clock until 10:59. At 10:59 the task executed and the file was moved. Is there a windows permission that does not allow moving files from a server to another network drive unless that account is actually logged in?
![]() |
Similar Threads
- Slow Network Access Not Always Due to Scheduled Tasks Check (Windows tips 'n' tweaks)
- Scheduled tasks will not run (ColdFusion)
- Help - Most Important Windows Maintenance Tasks (IT Professionals' Lounge)
- Using Advanced Options in Scheduled Tasks (Windows tips 'n' tweaks)
Other Threads in the Windows NT / 2000 / XP Forum
- Previous Thread: svchost.exe !!
- Next Thread: Fast user switching
| Thread Tools | Search this Thread |
.net 3.5 3daccelertion 2007 2010 a.exe alaris apache application appstore arm auto automatically black blue book cellphones collaboration computer computerfreezes crash cursor deployment desktop desktops dns domain dotnetnuke drive eartlink error errors explorer features folder fontmanagers format framework gadgets intel internet interoperability killprocess laptop latitude linux load login mac microsoft minimalizes mobile monitor motionle1600 netbooks novell nvidia open operatingsystems osx palm partition patch port printer product proxy rds remotedesktop remotedesktopconnection repair replacingraiddrive retrieve screen simplifiedchinese sp1 unreadable update usb verizon videodrivers videogames virtual virus vista visual vulnerability wab webos weecam win win32/heur window windows windows7 windowsxp windowsxpnotstartingup. worm xp xpde





