Hello, I want it to work as abc0502 has stated. the file company isnt a text file it is just listed as a file (its isn't called company.txt, just company) i have to open it with notedpad to see the contents. It is a file that the accounts program, sage, looks at and is pointed to the location of the...
from looking at it it looks as though it will just change s:\accounts to \\sage\SG50Acc$\Data\ i need it to look at whats there and swap to the other, maybe using an if staement? if text in file = S:\Accounts then text in file = \\sage\SG50Acc$\Data\ elseif text in file = \\sage\SG50Acc$\Data\ then ...
Hello, there are no blank lines in the file just the a line that will either be S:\Accounts or \\SAGE\SG50Acc$\Data\ my company has 2 versions of sage and point to different locations (the file paths above) so i want the batch file to change the file so so the user can swap between sage locations! I...
Hello, I'm trying to make a batch file to change a line of text in a file depending what the line is.... I have written this bit of code (with the help of google) but it doesnt work! Set objFS = CreateObject("Scripting.FileSystemObject") strFile = "C:\ProgramData\Sage\Company.txt"...