I'm trying to have an IExpress EXE that copies some files to a directory in "Program Files" but I'm struggling to get it to work. So far I have one File I want to copy, and the one .bat file in the EXE. I know that IExpress EXE's extract their contents to %\temp%\IXP000.TMP
so I thought that I could easily copy the file to the Program Files folder by having the following in the .bat file:
mkdir C:\"Program Files"\HybRIDS
C:\Windows\System32\xcopy %temp%\IXP000.TMP C:\"Program Files"\HybRIDS /i
But when I run the EXE and take a look there's nothing in my Program Files.
What am I doing wrong?
Is not true. It extracts to a sub folder of temp.
Put a
pause
at end of batch file. It will remain in temp to check the sub folder (mine is 1), plus you'll see any error messages. Make sureEcho
is Off.