Computing.Net > Forums > Programming > Need to move all .txt and .csv file

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.

Need to move all .txt and .csv file

Reply to Message Icon

Name: anitharaj
Date: May 19, 2008 at 12:20:59 Pacific
OS: xp
CPU/Ram: 2 gb
Product: 2008
Comment:

Hi All,

I need to move all the .csv and .txt files to a different folder and delete them in the original folder...

example.. i need to move files from folder a to folder b ...just like cut and paste...

pls let me know how we can do this inn dos

Thx,
anitha



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: May 19, 2008 at 12:52:41 Pacific
Reply:

@echo off
for %%j in (csv txt) do move "C:\source\*.%%
j" "C:\destination"

Happy to get your homework done!?


0
Reply to Message Icon

Related Posts

See More







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: Need to move all .txt and .csv file

Move 1.txt file to other folder and www.computing.net/answers/programming/move-1txt-file-to-other-folder-and/16588.html

Need to move files i cannot see www.computing.net/answers/programming/need-to-move-files-i-cannot-see/12852.html

Deleting all .txt .log, .tmp files www.computing.net/answers/programming/deleting-all-txt-log-tmp-files/16508.html