Archived Forum Post

Index of archived forum posts


Self extracting auto run folder

Nov 19 '14 at 06:29

I am creating an Sfx that auto-runs the contained exe which must look for and open a known file in the folder the Sfx was run from.

Unfortunately the "current" folder from the extracted exe's point of view is the temporary folder it was extracted to.

How can I pass the original folder to the extracted exe without adding command line parameters when running the Sfx?



SelfExtractor.exe contains MyExe.exe, MyAssembly.dll, etc. but cannot contain FileToOpen.txt.

Running SelfExtractor.exe extracts MyExe.exe to the AutoTemp folder and runs it but MyExe.exe cannot determine where the SelfExtractor.exe was run from to open FileToOpen.txt