Batch Process in Windows

  • Thread starter Thread starter TJ
  • Start date Start date
T

TJ

Hi,

I am asked to write a batch process to execute a SQL utility for
multiple files
basically I want to

"cd <perticular Dir>"
Loop thru the dir
execute SQL utility (textcopy.exe) for each file
exit at the end

I am completly clueless about windows command and programming.

can someone help ?

thanks a lot

TJ
 
ISBN 0-7356-2038-5 Microsoft Windows Command Line - available at bookstores
or Amazon. (it is for XP)
 
for %A in (*.*) do c:\somewhere\textcopy.exe "%A"

Use %%A in bat files and %A if typing. Case is important, %a <> %A.

Type For in help for more info.
 
Back
Top