Command Line Option

User discussion and information resource forum for Image products.
Post Reply
AlanD
Posts: 215
Joined: Sat Sep 17, 2011 4:45 pm

Command Line Option

Post by AlanD »

When using the Purge option with IFW command line, must you also specify
that the file name specified be in this format:
“$~YYYY$-$~MM$-$~DD$-$~HHMM$”

thanks

AlanD
TeraByte Support
Posts: 3616
Joined: Thu May 05, 2011 10:37 pm

Re: Command Line Option

Post by TeraByte Support »

no.

"AlanD" wrote in message news:2796@public.image...

When using the Purge option with IFW command line, must you also specify
that the file name specified be in this format:
"$~YYYY$-$~MM$-$~DD$-$~HHMM$"

thanks

AlanD

AlanD
Posts: 215
Joined: Sat Sep 17, 2011 4:45 pm

Re: Command Line Option

Post by AlanD »

On 2012-07-20 11:15 PM, TeraByte Support wrote:
> no.
>
> "AlanD" wrote in message news:2796@public.image...
>
> When using the Purge option with IFW command line, must you also specify
> that the file name specified be in this format:
> "$~YYYY$-$~MM$-$~DD$-$~HHMM$"
>
> thanks
>
> AlanD
>
>
I don't agree with that advice, since if you don't use a file name which
consists of current date, then the next day when the image program is
run again, the previous file will be deleted, regardless of where /purge
option is set.

For example this batch file:

SET PATH1=D:\IMAGE
imagew /b /d:w0 /f:"%PATH1%\image" /purge:3

what am I missing here?

AlanD



TeraByte Support
Posts: 3616
Joined: Thu May 05, 2011 10:37 pm

Re: Command Line Option

Post by TeraByte Support »

If you use the same file name it is overwritten, there would be no need to
use the purge option. purge option doesn't care about the file names, just
the dates and extension.

"AlanD" wrote in message news:2805@public.image...

On 2012-07-20 11:15 PM, TeraByte Support wrote:
> no.
>
> "AlanD" wrote in message news:2796@public.image...
>
> When using the Purge option with IFW command line, must you also specify
> that the file name specified be in this format:
> "$~YYYY$-$~MM$-$~DD$-$~HHMM$"
>
> thanks
>
> AlanD
>
>
I don't agree with that advice, since if you don't use a file name which
consists of current date, then the next day when the image program is
run again, the previous file will be deleted, regardless of where /purge
option is set.

For example this batch file:

SET PATH1=D:\IMAGE
imagew /b /d:w0 /f:"%PATH1%\image" /purge:3

what am I missing here?

AlanD

AlanD
Posts: 215
Joined: Sat Sep 17, 2011 4:45 pm

Re: Command Line Option

Post by AlanD »

On 2012-07-24 7:34 PM, TeraByte Support wrote:
> If you use the same file name it is overwritten, there would be no need to
> use the purge option. purge option doesn't care about the file names, just
> the dates and extension.
>
> "AlanD" wrote in message news:2805@public.image...
>
> On 2012-07-20 11:15 PM, TeraByte Support wrote:
>> no.
>>
>> "AlanD" wrote in message news:2796@public.image...
>>
>> When using the Purge option with IFW command line, must you also specify
>> that the file name specified be in this format:
>> "$~YYYY$-$~MM$-$~DD$-$~HHMM$"
>>
>> thanks
>>
>> AlanD
>>
>>
> I don't agree with that advice, since if you don't use a file name which
> consists of current date, then the next day when the image program is
> run again, the previous file will be deleted, regardless of where /purge
> option is set.
>
> For example this batch file:
>
> SET PATH1=D:\IMAGE
> imagew /b /d:w0 /f:"%PATH1%\image" /purge:3
>
> what am I missing here?
>
> AlanD
>
>
I understand that using same file name would cause the previous one to
be erased, but it looks to me like we are right back where I started
with my question about whether I needed to use the current date as a
file name, and you said I didn't.

If I didn't use the current date format for a file name, what would I use?

color me confused

AlanD
Bob Coleman
Posts: 786
Joined: Fri Aug 12, 2011 5:58 pm

Re: Command Line Option

Post by Bob Coleman »

AlanD wrote:

> I understand that using same file name would cause the previous one to
> be erased, but it looks to me like we are right back where I started
> with my question about whether I needed to use the current date as a
> file name, and you said I didn't.
>
> If I didn't use the current date format for a file name, what would I use?
>
> color me confused

I don't actually know anything about this, so these thoughts may or may not be correct, but it appears to me just from reading here that you think the purge option uses a date that is part of the filename and that Terabyte Support is saying that the purge option uses the actual creation date of the file.
TeraByte Support
Posts: 3616
Joined: Thu May 05, 2011 10:37 pm

Re: Command Line Option

Post by TeraByte Support »

If you're not wanting to overwrite the same image, you'd use some of the
file path variables (or have a script that does a custom one you want). But
the date in the file name has nothing to do with the purge option itself.

"AlanD" wrote in message news:2815@public.image...

On 2012-07-24 7:34 PM, TeraByte Support wrote:
> If you use the same file name it is overwritten, there would be no need to
> use the purge option. purge option doesn't care about the file names,
> just
> the dates and extension.
>
> "AlanD" wrote in message news:2805@public.image...
>
> On 2012-07-20 11:15 PM, TeraByte Support wrote:
>> no.
>>
>> "AlanD" wrote in message news:2796@public.image...
>>
>> When using the Purge option with IFW command line, must you also specify
>> that the file name specified be in this format:
>> "$~YYYY$-$~MM$-$~DD$-$~HHMM$"
>>
>> thanks
>>
>> AlanD
>>
>>
> I don't agree with that advice, since if you don't use a file name which
> consists of current date, then the next day when the image program is
> run again, the previous file will be deleted, regardless of where /purge
> option is set.
>
> For example this batch file:
>
> SET PATH1=D:\IMAGE
> imagew /b /d:w0 /f:"%PATH1%\image" /purge:3
>
> what am I missing here?
>
> AlanD
>
>
I understand that using same file name would cause the previous one to
be erased, but it looks to me like we are right back where I started
with my question about whether I needed to use the current date as a
file name, and you said I didn't.

If I didn't use the current date format for a file name, what would I use?

color me confused

AlanD

AlanD
Posts: 215
Joined: Sat Sep 17, 2011 4:45 pm

Re: Command Line Option

Post by AlanD »

On 2012-07-25 8:31 PM, Bob Coleman wrote:
> AlanD wrote:
>
>> I understand that using same file name would cause the previous one to
>> be erased, but it looks to me like we are right back where I started
>> with my question about whether I needed to use the current date as a
>> file name, and you said I didn't.
>>
>> If I didn't use the current date format for a file name, what would I use?
>>
>> color me confused
>
> I don't actually know anything about this, so these thoughts may or may not be correct,

but it appears to me just from reading here that you think the purge
option uses a date

that is part of the filename and that Terabyte Support is saying that
the purge option

uses the actual creation date of the file.
>
>
Bob,

thanks for putting the right face on my question. Exactly what I should
have said in original question.

I thought as you, that somehow, with purge option, that the program
extracted the creation date and used it in calculating purges.

First answer from TB was, as you saw, that "no" I didn't have to use
current file format, then they tell me I do (basically)

I created a somewhat convoluted way (using home-built batch file) of
saving newest image (full drive) into one folder and placing three
(next oldest) in a second folder. It works fine as long as I create
images daily (which I do), but gets out of whack (insofar as having
three backups) if days are skipped.

I just wanted to experiment with the purge option.
I am doing that now, using today's file date for file name, with purges
set for 3. I'll see in a couple of days how it behaves.

thanks again for letting me see that I am not bonkers (not yet anyway)
AlanD
Posts: 215
Joined: Sat Sep 17, 2011 4:45 pm

Re: Command Line Option

Post by AlanD »

On 2012-07-25 8:45 PM, TeraByte Support wrote:
> If you're not wanting to overwrite the same image, you'd use some of the
> file path variables (or have a script that does a custom one you want). But
> the date in the file name has nothing to do with the purge option itself.
>
> "AlanD" wrote in message news:2815@public.image...
>
> On 2012-07-24 7:34 PM, TeraByte Support wrote:
>> If you use the same file name it is overwritten, there would be no need to
>> use the purge option. purge option doesn't care about the file names,
>> just
>> the dates and extension.
>>
>> "AlanD" wrote in message news:2805@public.image...
>>
>> On 2012-07-20 11:15 PM, TeraByte Support wrote:
>>> no.
>>>
>>> "AlanD" wrote in message news:2796@public.image...
>>>
>>> When using the Purge option with IFW command line, must you also specify
>>> that the file name specified be in this format:
>>> "$~YYYY$-$~MM$-$~DD$-$~HHMM$"
>>>
>>> thanks
>>>
>>> AlanD
>>>
>>>
>> I don't agree with that advice, since if you don't use a file name which
>> consists of current date, then the next day when the image program is
>> run again, the previous file will be deleted, regardless of where /purge
>> option is set.
>>
>> For example this batch file:
>>
>> SET PATH1=D:\IMAGE
>> imagew /b /d:w0 /f:"%PATH1%\image" /purge:3
>>
>> what am I missing here?
>>
>> AlanD
>>
>>
> I understand that using same file name would cause the previous one to
> be erased, but it looks to me like we are right back where I started
> with my question about whether I needed to use the current date as a
> file name, and you said I didn't.
>
> If I didn't use the current date format for a file name, what would I use?
>
> color me confused
>
> AlanD
>
>
ah! now it makes sense. somewhat of a disconnect here.
Post Reply