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.
Batch file to find & replace files
Name: t8mas Date: February 20, 2009 at 01:25:36 Pacific OS: Windows XP Subcategory: Batch
Comment:
Hi Everyone,
I Would like to create a batch file. Could you help me? Here are the specifications:
1. I have certain number of files inside a folder1. 2.list all the filenames of those files inside folder1 on filelist1 3. I want to search a specific directory having the same file as i have with from the folder1 -path can be stored on a filelist2 to be used for change directory 4. change directory recursively and replace the existing files inside a specific directory of all the files from folder1 until all the files inside folder1 has been consumed. 5. if there is a point that the file cannot be seen on that specific directory, ask from the user the correct directory folder structure and the batch should create that same folder structure specified by the user then copy that new file from folder1 to the specified directory.
Summary: I need to figure out a method to find and replace text within a text file. I have a file named, "myfile.txt" that has the following; testing=1 database=500 rules=30 I want the batch file to find datab...
Summary: I am trying to replace the path names in several fortran files with an updated path for easy transfer between Windows and Linux. Ideally the paths should be user spoecified currently the files read: i...
Summary: How to I convert this batch information to a vbs file @ECHO off cls set t=2 if "%date%z" LSS "A" set t=1 for /f "skip=1 tokens=2-4 delims=(-)" %%a in ('echo/^|date') do ( for /f "tokens=%t%-4 delim...