Batch file help!!

goomba79

Honorable
Dec 4, 2012
1
0
10,510
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