Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shell script Question: FOR /F "tokens=2-4 delims=/ " %%A ...

Status
Not open for further replies.

pdtt

Programmer
Sep 24, 2002
35
0
0
CA
Hi,

I am using the following shell script command to rename backkup files.

Code:
FOR /F "tokens=2-4 delims=/ " %%A IN ('Date /T') DO REN finance_pnl_analysis.mdc %%C-%%A-%%B-finance_pnl_analysis.mdc

It works perfectly on one server in a command file for a different backup. When I run the same command on another server I get an error.

Code:
%%A was unexpected at this time.


does anyone know why I am getting this error?

Many thanks in advance!

Regards, Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top