Batch file help!! Tags: Programming Apps Last response: December 4, 2012 8:17 PM in Applications Share goomba79 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 PhilFrisbie 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. Can't find your answer ? Ask ! Publish Related resources Help making a batch file Forum SolvedNeed help with batch file Forum Help with echo batch file Forum SolvedNeed Help with a Batch File Forum SolvedBatch file help Forum SolvedRequest batch file help Forum Batch File Game Help Forum batch file help Forum Batch file help Forum Need help with Batch file Forum Help for writing batch file to rename files in a folder in particular pattern. Forum Batch file FTP help Forum Batch File Help Forum Batch file help Forum Need help with batch file Forum Windows 7 batch file help Forum Batch file help plz >< Forum Need help with basic batch file Forum Batch File Help Forum batch file help Forum More resources Read discussions in other Applications categories Graphics Internet Applications Multimedia Office Security CAD Distributed Computing Drivers Enterprise Software Firmware Programming Photoshop Skype Wordpress !