Computing.Net > Forums > Programming > Bat file to copy the files based on

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.

Bat file to copy the files based on

Reply to Message Icon

Name: phani333
Date: August 2, 2008 at 02:30:15 Pacific
OS: Windows 2003
CPU/Ram: Pentium 4, 1 GB
Comment:

Dear Experts,

I have around 100 xml files in FoldeA (Windows 2003 OS). I have to move the files to FolderB which contains the word "sapuser" in them. Can you please suggest a batch file for this.

Thanks in Advance,
Phani Akella.

Thanks,
Phani Akella



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: August 2, 2008 at 02:53:36 Pacific
Reply:

@echo off
for %%j in (FolderA\*.xml) do (
find "sapuser" "%%j" > Nul && move "%%j" FolderB
)
:: End_Of_Batch


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: Bat file to copy the files based on

copy or move files based on file extensions www.computing.net/answers/programming/copy-or-move-files-based-on-file-extensions/20072.html

Script to Del files based on size www.computing.net/answers/programming/script-to-del-files-based-on-size/18376.html

script to copy specify date file to www.computing.net/answers/programming/script-to-copy-specify-date-file-to/17662.html