Sign in with
Sign up | Sign in
Your question

Batch file help!!

Tags:
  • Programming
  • Apps
Last response: in Apps General Discussion
Share
December 4, 2012 12:07:09 PM

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

More about : batch file

a b L Programming
December 4, 2012 8:17:17 PM

You cannot so that with batch files on Windows unless you are willing to install Unix command line tools like grep.
!