regarding batch scripting

Microsoft Windows server 2008 r2 standar...
February 26, 2010 at 02:00:29
Specs: Windows XP
I have around 160 batch files in a folder,there is a small change in the scripts. i have to replace a command in each and every script.i want to replace TOUCH command with type nul>. how can i. otherwise i have to go manually

See More: regarding batch scripting

Report •

April 29, 2010 at 17:14:37
I would suggest using a powerful text editor like Textpad. You can load all files into Textpad, and do a global search and replace.

Report •

May 1, 2010 at 03:53:22
Something like this (untested), but you need sed.exe :

FOR %%f in (*.*) do (
sed.exe "s/old_text/new_text/g" %%f >
move /Y %%f

Report •
Related Solutions

Ask Question