Page 1 of 1

Where is my mistake ?????

Posted: Wed Feb 04, 2009 6:29 am
by otto_cuiseur
My script is :

[ REM R-DriveImage script file ]
set creat_date = "&sys.date.yyyy;-&sys.date.m.nm;-&sys.date.y;"
create /a /o -s="1" -a="G:\Image &creat_date;.arc" -c=0 -u -bs -bs-num-f="3"


As result, the file name is Image 2009-Feb-09_20090204_122002_1.arc


How to obtain as file name : Image 2009-Feb-09.arc ? without :twisted: :twisted: :twisted: _20090204_122002_1


Thanks

Re: Where is my mistake ?????

Posted: Thu Feb 05, 2009 6:36 am
by otto_cuiseur
A good script ?

[ REM R-DriveImage script file ]
set creat_date = "&sys.date.yyyy;-&sys.date.m.nm;-&sys.date.d;"
create /a /o -s="1" -a="G:\Image &creat_date;.arc" -c=0 -u

[ without backup set]
; -bs -bs-num-f="3"

Re: Where is my mistake ?????

Posted: Thu Feb 05, 2009 10:05 am
by Alt
How to obtain as file name : Image 2009-Feb-09.arc ? without _20090204_122002_1
Remove -bs -bs-num-f="3" from your script. As soon as you turn on backup sets, the date_time_Number will be automatically added to the file name.
A good script ?
I tested it (changing the partition and path to the image file) and it appears so.

Re: Where is my mistake ?????

Posted: Thu Feb 05, 2009 11:08 am
by otto_cuiseur
Ok -

Thanks Alt