Script Help

Discuss RoboTask here
Post Reply
chrisk
Posts: 1
Joined: Mon Apr 09, 2012 11:58 am

Script Help

Post by chrisk »

I can't figure out why this script sometimes fails.  It seems to create folders in the wrong directory.;*****************************;* RoboTask Task file;* Do not edit in text editor!;***************************** [Root]ActionAfterRun=INTEGER|0Actions=FOLDERAutomat=INTEGER|-1CatID=INTEGER|0Comment=STRINGLISTContinueOnError=INTEGER|0Events=FOLDERExternalName=STRING|"Task1"Hide=INTEGER|0ID=INTEGER|1838831686LogOnAsUser=INTEGER|1Name=STRING|"Archive UPS Tracking"OnErrorTaskID=INTEGER|0Priority=INTEGER|3RunOnClose=INTEGER|0RunOnStartup=INTEGER|0ToLog=INTEGER|3WriteGeneralLog=INTEGER|1[Actions]Action1=FOLDERAction2=FOLDERAction3=FOLDERAction4=FOLDER[Actions\Action1]ActionID=STRING|"A_FOLDER_RENAME"Enabled=INTEGER|-1Name=STRING|"Rename Folder ""C:\xampp\htdocs\UPS\Today"""Params=FOLDER[Actions\Action1\Params]folder=STRING|"C:\xampp\htdocs\UPS\Today"newfolder=STRING|"C:\xampp\htdocs\UPS\UPS_Tracking_{MYDATE}"[Actions\Action2]ActionID=STRING|"A_FILE_COPY"Enabled=INTEGER|-1Name=STRING|"Copy/Move File"Params=FOLDER[Actions\Action2\Params]destdir=STRING|"C:\xampp\htdocs\UPS\UPS_Tracking_Archive\"f_count=STRING|"1"file0=STRING|"C:\xampp\htdocs\UPS\UPS_Tracking_{MYDATE}"hidden=STRING|"0"ifexists=STRING|"0"move=STRING|"1"subdir=STRING|"0"system=STRING|"0"[Actions\Action3]ActionID=STRING|"A_FOLDER_CREATE"Enabled=INTEGER|-1Name=STRING|"Create Folder (C:\xampp\htdocs\UPS\Today)"Params=FOLDER[Actions\Action3\Params]newfolder=STRING|"C:\xampp\htdocs\UPS\Today"[Actions\Action4]ActionID=STRING|"A_FILE_COPY"Enabled=INTEGER|-1Name=STRING|"Copy/Move File"Params=FOLDER[Actions\Action4\Params]destdir=STRING|"C:\xampp\htdocs\UPS\Today"f_count=STRING|"1"file0=STRING|"C:\xampp\htdocs\UPS\TodayNew\*.*"hidden=STRING|"1"ifexists=STRING|"0"move=STRING|"0"subdir=STRING|"0"system=STRING|"1"[Events]Event1=FOLDER[Events\Event1]Enabled=INTEGER|-1EventID=STRING|"E_GENERAL_SHEDULER"Params=FOLDERUnigueID=INTEGER|1023893586[Events\Event1\Params]id=STRING|"2VFSB0TV"periodicity=STRING|"1"periodparameter=STRING|"0111110"startdate=STRING|"40967"time0=STRING|"63000000"timecount=STRING|"1" 
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Script Help

Post by Oleg »

Look at 2-nd step
I think that you should use
C:\xampp\htdocs\UPS\UPS_Tracking_{MYDATE}\*.*
instead of
C:\xampp\htdocs\UPS\UPS_Tracking_{MYDATE}
Last edited by Oleg on Tue Apr 10, 2012 10:42 am, edited 1 time in total.
Post Reply