• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

How can I set the name of the ini file?

I would like to change the following:

 set IniFile=%~dpn0.ini

Where the n is supposed to be the name of the bat file, I want to specify the name of this ini file to be for example:
So the ini file I want to be specified as record.ini

Everything else can stay the same as is indicated in the script, the path, location etc.
1 Solution
Steve KnightIT ConsultancyCommented:
Then just specify the name:

Set IniFile=record.ini

or if you want the path of the existing batch file too:

Set IniFile=%~dp0\record.ini

i.e. take the (d)rive and (p)ath of the batch file name and add the word \record.ini to the end.


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now