login about faq

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

asked Nov 19 '14 at 06:29

PeteB's gravatar image


Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Nov 19 '14 at 06:29

Seen: 899 times

Last updated: Nov 19 '14 at 06:29

powered by OSQA