General discussion

Locked

list of wild cards lime %UserName%

By wlewis ·
I am looking for a list of available wild cards for use in scripts. Specifically, Iam looking for a wildcard that will function like %SystemTime% so that I can cope ( zip) files to a file %systemTime%.zip so that one file does not overwrite the previous file.

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

list of wild cards lime %UserName%

by Joseph Moore In reply to list of wild cards lime % ...

I have the syntax to do this in a Windows BAT file. I don't know if this helps you or not, though.

There is no system time variable. But, you can run the following to do what you want:

for /f "tokens=1-4 delims=/ " %%i in ('date /t') do copy YOURFILE.ZIP %%l-%%j-%%k.ZIP

That would make a copy of YOURFILE.ZIP and call it 2002-09-03.ZIP

Collapse -

list of wild cards lime %UserName%

by wlewis In reply to list of wild cards lime % ...

Some help, thanks for the input

Collapse -

list of wild cards lime %UserName%

by RRV In reply to list of wild cards lime % ...

I understand that you want to create unique file name for zipping. Use file system object. if a file of a given name is found, append an increment integer to the file and search again. This logic works fine and i'm using in many places.
RV

Collapse -

list of wild cards lime %UserName%

by wlewis In reply to list of wild cards lime % ...

All smoke, no fire, no specific answer give.

Collapse -

list of wild cards lime %UserName%

by wlewis In reply to list of wild cards lime % ...

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums