Computing.Net > Forums > Programming > rename folder having filename init

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.

rename folder having filename init

Reply to Message Icon

Name: alwaysk2
Date: August 20, 2008 at 11:56:14 Pacific
OS: windows 2003 Ent. server
CPU/Ram: 8GHZ/16Gb
Product: IBM
Comment:

hi,

i have made a batch file which copies some files into another server and makes a zip file on destination server. The problem is i need to make a zip file on the basis of foldername or else on the name of file. like

i am having a file and folder names as

folder name:- monday_log_08172008_4
file name:- monday_log_08172008_4.log

i have made the batch file which makes a zip file of the folder as
monday_log_08172008.zip

but don't know how to make it as the folder name or the file names as i shown above but i don't know how to make it perfect is there any idea.
Please note that folder name or file name gets changed everyday like

monday_log_08172008_19.log
monday_log_08172008_440.log

so we daily need to rename it and make it a zip file of it.

your kind help is highly appriciated.

K2™
System/Network Engineer



Sponsored Link
Ads by Google

Response Number 1
Name: alwaysk2
Date: August 21, 2008 at 05:24:27 Pacific
Reply:

sorry my mistake is there

i am not having the folder calls

folder name:- monday_log_08172008_4

its just a folder having a date name
as c:\08192008

K2™
System/Network Engineer


0

Response Number 2
Name: alwaysk2
Date: August 22, 2008 at 05:52:46 Pacific
Reply:

i think ill have to wait a lot for the answer... hehe

K2™
System/Network Engineer


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Batch - Variables in 1 Li... How to automate telnet



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: rename folder having filename init

Batch file for renaming folders www.computing.net/answers/programming/batch-file-for-renaming-folders/15430.html

rename-batch / filename of folder www.computing.net/answers/programming/renamebatch-filename-of-folder/17904.html

rename folder based on contents www.computing.net/answers/programming/rename-folder-based-on-contents/20156.html