Batch File Q
#1
Scooby Regular
Thread Starter
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
Batch File Q
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
#2
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