Answer the question
In order to leave comments, you need to log in
How to make .bat understand the %ProgramFiles% environment variable correctly on an x64 system?
Good afternoon.
I am preparing the installer in the Smart Install Maker program, after the main installation, the .bat should start, which copies the file
copy /y "%Temp%\MyProg\import.dll" "%ProgramFiles%\MyProg"
Answer the question
In order to leave comments, you need to log in
I am writing a batch file for the first time, so I apologize for the questions, but how will set help me if I don’t know what the user’s folder is called and on which disk it is, for example.
As far as I understand, this batch file is executed in the cmd interpreter, which lies in Windows \ SysWOW64 and for it the environment variable % ProgramFiles% is always equal to ProgramFiles (x86)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question