View Full Version : _SourceFolder ???
Jason Pate
02-09-2005, 06:27 PM
:huh _SourceFolder is giving me a temp folder under the document and settings under the current users, not the actually folder that I ran the program from????? How can I get the program that I actaully ran the application from?
Corey
02-09-2005, 06:33 PM
Hi. That is the folder where your program is running from. For example if you are publishing to a single file compressed .exe, it will extract to a folder first and then run from there... Hope that helps.
Jason Pate
02-09-2005, 06:36 PM
Any way I can get the location that the orginal exe opened from? I am trying to save a INI file that I can load settings from later on. I dont want to put in a Hard path, I was hoping to just put it in the same place as the exe. A temp folder might not be there next time the application goes to run.
aelsharawi
02-09-2005, 06:38 PM
I think u built using the (compressed exe) option,that option normally run the autoplay.exe from the temp folder.
aelsharawi
02-09-2005, 06:40 PM
Try to put it in the (doc folder in the resource section0
Just drag & deop the file into the resource viewer
aelsharawi
02-09-2005, 06:42 PM
Sorry (Corey) I didn't know that u posted before me ;)
Jason Pate
02-09-2005, 06:44 PM
Thank you Kind Sir, that was totally my problem.
Jason Pate
02-09-2005, 06:46 PM
I will be saving stuff into the ini file during runtime and later recalling them. Thanks for the help.
Corey
02-09-2005, 06:48 PM
Thanks for the help aelsharawi. :)
Hi Jason. Simply write persistent values to the registry using the registry actions:
http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/Alphabetical_List.htm#Registry
Jason Pate
02-09-2005, 08:44 PM
I was thinking of that, but user might not have rights to registry:) I changed my build option and that had done the trick for me.
Corey
02-09-2005, 08:45 PM
Perfect! :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.