Batch File Q
Thread Starter
Scooby Regular
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Im being thick today (hungover)
in a batch file I have done something similar to:
FOR /F "tokens=2-4 delims=/ " %%i in ('DATE /T') do set fdate=%%k_%%j_%%
How the **** can I get the short year using the for command??
I just need 05 or 06 returned.. cant really use another scripting language either
David
in a batch file I have done something similar to:
FOR /F "tokens=2-4 delims=/ " %%i in ('DATE /T') do set fdate=%%k_%%j_%%
How the **** can I get the short year using the for command??
I just need 05 or 06 returned.. cant really use another scripting language either

David
Originally Posted by David_Wallis
Im being thick today (hungover)
in a batch file I have done something similar to:
FOR /F "tokens=2-4 delims=/ " %%i in ('DATE /T') do set fdate=%%k_%%j_%%
How the **** can I get the short year using the for command??
I just need 05 or 06 returned.. cant really use another scripting language either
David
in a batch file I have done something similar to:
FOR /F "tokens=2-4 delims=/ " %%i in ('DATE /T') do set fdate=%%k_%%j_%%
How the **** can I get the short year using the for command??
I just need 05 or 06 returned.. cant really use another scripting language either

David
FOR /F "tokens=2-4 delims=/ " %%i in ('DATE /T') do set fdate=%%j
if %fdate% == 2005 set gdate=05
if %fdate% == 2004 set hdate=04
if %fdate% == 2003 set idate=03
etc ....
Thread
Thread Starter
Forum
Replies
Last Post



