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.
Test File Name
Name: freediver211 Date: July 23, 2007 at 08:21:12 Pacific OS: Windows XP CPU/Ram: N/A Product: N/A
Comment:
I have this DOS batch script that searches a folder for files and folders and moves those files and folders to another folder. This script is called by a separate application. What I need to do is modify my script to search the file name and if the file name has a flag in it then don't move that file. For example, if the file name has an extension of "_dontmoveme" I don't want to the move the file (ex. "file123_dontmoveme").
:: OLD SCRIPT: :: Search directory for folder and file names. for /f "tokens=* delims=" %%x in ('dir %INPUT_FOLDER% /b/ad') do move %INPUT_FOLDER%"%%x" %OUTPUT_FOLDER%
What I would like to do: :: Search directory for folder and file names. for /f "tokens=* delims=" %%x in ('dir %INPUT_FOLDER% /b/ad') do NewMethod
NewMethod if (%%x NOT Contain "_dontmoveme") do move %INPUT_FOLDER%"%%x" %OUTPUT_FOLDER% else do nothing
Summary: Hello. An interesting question came up today. A co-worker receives a file to process daily. After she's done and passes the information off to the database team (FTP in a .bat) she'd like the .bat ...
Summary: Well I must admit I was impressed with the LFN tools that you alluded to. Heck I even compressed them all, put them on a floppy, and disabled the internal DOS equivalents in COMMAND.com and I have LF...
Summary: Hi.. I am creating a batch file to create a .zip file every day. Example: pkzip test.zip testdata I am wondering if there is a way to manually create the zip file name on the fly. For example one da...