/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


BATCH HELP

08/12/2014 2035 views

hello all-

i have a created this batch to copy a file to a network folder everything is working fine when i run it manually but the minute i set it up to run in task scheduler in windows 2003 nothing is working. what am i doing wrong also do any of you guys have a vbs script thats able to do the same thing

for %%I in (c:\FTP-JOBS\FTP-NOTICES\STORAGE\CERT_MAT_DAILY*) do copy "%%~fI" "\\enet-nas\cushare\DATA\Records\Reports\Matured CD"
for %%I in (c:\FTP-JOBS\FTP-NOTICES\STORAGE\CERT_MAT_WKND*) do copy "%%~fI" "\\enet-nas\cushare\DATA\Records\Reports\Matured CD"
for %%I in (c:\FTP-JOBS\FTP-NOTICES\STORAGE\DATACHANGE_RPT*) do copy "%%~fI" "\\enet-nas\cushare\DATA\Records\Reports\Share Data Change"

thanks

2 Comments   [ + ] Show comments

Comments

  • It may be related to access rights on this network share. If you task is scheduled to run as Local System Account, probably it will not have acces to this network location - it is different execution context than executed manually.
  • i found the issue right after i post this thanks
    • >i found the issue...
      ...which I'm not going to share with anyone.

      BTW, next time you post, please use appropriate tags. Batch commands have nothing whatsoever to do with VBScript!!

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ