Articles & News
Graphics & Displays
Tom's IT Pro
Login | Sign Up
The authority on tech
Apps General Discussion
Batch file help!!
Dec 4, 2012, 12:07 PM
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
I have no idea how to do this as I have had no experience with Batch files.
any help would be greatly appreciated
Dec 4, 2012
batch file help
Dec 4, 2012, 8:17 PM
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
Batch file FTP help
Batch file help plz ><
Need help writing a batch
Need help with batch file
Batch File Question
Batch file help
Need help with basic batch file
Batch (bat) file to look at a website and find something
Batch file to unite txt file row into one?
Batch file log file creation
Batch file will not run in windowsxp
Batch file to start a service
I7 920 batch
Need write results from 2 seperate files to one log file via .bat
Batch file runs, but then gives error can't find file
Request batch file help
Need Help with a Batch File
MSDOS Batch File
Subscribe to our newsletter
icon arrow stem circle
About Tom's Hardware
Licensing and Reprints
Other Purch sites
© 2018 Purch All Rights Reserved.