Computing.Net > Forums > Programming > was unexpected at this time

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

was unexpected at this time

Reply to Message Icon

Name: abdussami
Date: May 23, 2009 at 02:37:23 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

hi,

following command works fine on command line. But in bacth file it gives error : was unexpected at this time.

for /F "tokens=2-4 delims=/ " %i in ('date /t') do ren temp1.tar %k%i%j.tar



Sponsored Link
Ads by Google

Response Number 1
Name: Judago
Date: May 23, 2009 at 03:15:37 Pacific
Reply:

If it's a batch file then %i should be %%i, %i would only work from the commandline.


0

Response Number 2
Name: abdussami
Date: May 23, 2009 at 03:51:31 Pacific
Reply:

hi,

Thanks alot it worked fine after replacing with %%i


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


what is diffirence betwee... picture as background ima...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: was unexpected at this time

| was unexpected at this time. www.computing.net/answers/programming/-was-unexpected-at-this-time/16652.html

' was unexpected at this time error www.computing.net/answers/programming/-was-unexpected-at-this-time-error/18860.html

0x0 was unexpected at this time www.computing.net/answers/programming/0x0-was-unexpected-at-this-time/19963.html