View Full Version : Hiding Source Folders
shanex252
09-01-2008, 08:31 AM
Hi guys, I want to change my application's temprorary extract path.I have tried to change the folder with "Edit->Prefences-> Folder" but i couldn't success it. I want to hide temprorary exract folder. Could you explain me the ways? :rolleyes
shanex252
09-01-2008, 02:39 PM
:huh Help me!! :huh
Bruce
09-01-2008, 02:59 PM
Hi guys, I want to change my application's temprorary extract path.I have tried to change the folder with "Edit->Prefences-> Folder" but i couldn't success it. I want to hide temprorary exract folder. Could you explain me the ways? :rolleyes
No that's for your projects within your system...hummm not sure how to answer you on this one... hold on.
(Half hour later) I don't know! That sucks... Anyone?
shanex252
09-01-2008, 03:15 PM
Thanks.I am waiting you...
EDI: okay...
Ulrich
09-01-2008, 06:04 PM
The application built with AMS will always be extracted to a folder (named like ir_ext_temp_*) in your temporary folder. You can't specify the folder name to extract to, but you can easily hide the folder once it was created.
All you have to do is, at program start, check the current folder, and set it as hidden (and maybe as system), so it isn't listed in the default configuration of Windows Explorer. This is a weak protection, but it is what you asked for.
On the On Startup tab of your project, place these lines of code to hide the folder where your project was extracted:
-- get the current folder
folder = Folder.GetCurrent();
-- hide the current folder
attributes = File.GetAttributes(folder);
attributes.Hidden = true;
attributes.System = true;
File.SetAttributes(folder, attributes);
Once your application is closed, the folder is deleted, as always.
Ulrich
Bruce
09-01-2008, 11:48 PM
There ya go! :yes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.