Task Scheduler Batch File
Hi... I have the following batch file... *** CODE STARTS *** ECHO OFF set startDate=%Date% Set StartTime=%Time% ECHO Update Local PC from QliKView Server ECHO ...Copying QVDTables Folder... xcopy "Q:\Timbmet_Live\QVDTables\*.*" "C:\QlikViewFiles\Timbmet_Live\QVDTables\*.*" /d /s /y /v ECHO . ECHO . Updating Log File... set EndDate=%Date% Set EndTime=%Time% echo User %userprofile% Copy Started %StartDate% %StartTime% Completed %EndDate% %EndTime% >> c:\temp\UpdateQlikViewLog.txt *** CODE ENDS *** This is run via task scheduler at 8 pm each night ( I leave my PC switched on but I am logged off). I have therefore set the task to run whether user is logged on or not. I can see from my log file that task scheduler is running the task but the files are not being copied. On Friday night I left my PC logged in and the files did copy. The batch file does work okay as I can manually run it. Any ideas? Regards Paul
March 28th, 2011 1:53pm

Are you applying this script through Group Policy, Try and let me know?Vinodh.M 8086968942
Free Windows Admin Tool Kit Click here and download it now
March 28th, 2011 4:06pm

Go to task scheduler properties and change "Log on as" to "your login ID". Scheduler will run the batch file even if you are logged out. Please try this and let me know.Vinodh.M 8086968942
March 29th, 2011 6:25am

Thanks for the response... Not sure I understand the question but I will try and explain the set up... The above codes forms part of a windows batch file which is stored on my Windows 7 desktop. Using the windows 7 task scheduler I have set up a task to run this at a specific time with some logging. Within the task I have selected the option to run whether the user is logged on or off... Hope this helps... Regards Paul
Free Windows Admin Tool Kit Click here and download it now
March 29th, 2011 11:53am

Apologies for delay in coming back to you... I had the above already set but still no success. However, I think that I have found the issue... I was using a mapped drive - when I changed this to the full path, the batch runs whether I am logged on or not. Thanks for everyones help... Paul
April 20th, 2011 8:12am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics