Hello all.
I Hope you can help,
I am trying to use a batch file to edit an .ini file, and then save it.
Basically, it needs to be able to navigate to :
C:\Users\jason\AppData\Roaming\PAS\Common
Open the file PAS.ini within that folder, delete all of its contents and replace it with new text, then save.
Alternatively - if its easier, I can just create a new ini. file and replace the old one with the new one.
Thank you all in advance.
Create/edit an .ini File
Moderator: DosItHelp
Re: Create/edit an .ini File
You would not just open it and delete the contents. You would either just use the delete command to delete the file or overwrite the file with the new contents. But you will need to do a much better job of explaining what you are trying to do. You have not provided enough detailed information for anyone to provide you an answer that may solve your problem.
Re: Create/edit an .ini File
I'll give the guy a hand, Squashman.
This overwrites everything inside and puts the word five inside the ini file.
This overwrites everything inside and puts the word five inside the ini file.
Code: Select all
>"C:\Users\jason\AppData\Roaming\PAS\Common\PAS.ini" echo(five