Batch file help!!

Hello,
I need to get a batch file to look at a file, read what is there and change it accordingly...

i need it to look at whats there and swap to the other, maybe using an if staement?

file path = C:\ProgramData\Sage\Company
if text in file = S:\Accounts then text in file = \\sage\SG50Acc$\Data\

elseif text in file = \\sage\SG50Acc$\Data\ then text in file = S:\Sage

end if

I have no idea how to do this as I have had no experience with Batch files.

any help would be greatly appreciated
1 answer Last reply
More about batch file help
  1. You cannot so that with batch files on Windows unless you are willing to install Unix command line tools like grep.
Ask a new question

Read More

Programming Apps