Computing.Net > Forums > Programming > Batch file Help!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Batch file Help!

Reply to Message Icon

Name: zorak1083
Date: April 10, 2006 at 08:41:34 Pacific
OS: Win XP Pro
CPU/Ram: 1.7MHz/512Mb/400MHz
Comment:

Hi to everyone,
I'm new here and rookie to dos/batch files.
I'm having a little difficulty with a project in my university.
All i have to do is make a file/routine that will automaticaly rename a folder depending on the system's date. I don't need hour just the date (Day_Month_Year).
For example, if i have a folder with my incoming e-mail the batch will be able to rename it to "inbox_d_m_y"
My dos version is 5.1.2600

Thanks for your time.


zorak1083



Sponsored Link
Ads by Google

Response Number 1
Name: ghostdog
Date: April 10, 2006 at 22:51:12 Pacific
Reply:

check out the help for "for" loops

> for /?
you can use this :
for /F "tokens=1,2* delims=/ " %i in ('date /T') do @echo %i %j %k

to get the day, month, year.
for renaming of files, use ren


0

Response Number 2
Name: Mechanix2Go
Date: April 10, 2006 at 23:03:55 Pacific
Reply:

As I said in my reply to this msg when it was first posted in another forum, nothing much will get done without knowing the DATE layout.


=====================================
If at first you don't succeed, you're about average.

M2Go



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


VB 6 Program Minimise on startup



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: Batch file Help!

batch file help www.computing.net/answers/programming/batch-file-help/13830.html

Batch File Help www.computing.net/answers/programming/batch-file-help-/11464.html

batch file help www.computing.net/answers/programming/batch-file-help/190.html