Author |
Message |
cavetroll
![](http://compsci.ca/v3/uploads/user_avatars/9161761347fd5efa4f4b5.jpg)
|
Posted: Thu Dec 14, 2006 9:36 pm Post subject: Copying and saving executable files |
|
|
I am creating a program where I want to allow the user to unlock otherwise hidden executable files. I am wondering how I would copy the executable files to be available for the user to run. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Hackmaster
|
Posted: Thu Dec 14, 2006 9:42 pm Post subject: (No subject) |
|
|
Well, it depends on what exactly you are trying to hide. if it's unlockables, or bonus matrieal within the game, or whatever the program is, why don't you just create a boolean variable that is true when they've unlocked it, and save it to a file? It would be really helpful here to know about what type of program it is an what you are trying to hide here, though. |
|
|
|
|
![](images/spacer.gif) |
uberwalla
![](http://www.mac-help.com/images/starwars.gif)
|
Posted: Thu Dec 14, 2006 9:44 pm Post subject: (No subject) |
|
|
can u be more specific of what you are trying to accomplish? do u mean if u hide the c: folder and then unhide through turing type of thing? |
|
|
|
|
![](images/spacer.gif) |
cavetroll
![](http://compsci.ca/v3/uploads/user_avatars/9161761347fd5efa4f4b5.jpg)
|
Posted: Thu Dec 14, 2006 9:46 pm Post subject: (No subject) |
|
|
Ya its a riddle program. When the user gets to a certain level the file (an executable file for a game) would be shown in a folder a that can now be played by the user. |
|
|
|
|
![](images/spacer.gif) |
cavetroll
![](http://compsci.ca/v3/uploads/user_avatars/9161761347fd5efa4f4b5.jpg)
|
Posted: Thu Dec 14, 2006 9:49 pm Post subject: (No subject) |
|
|
uberwalla wrote: can u be more specific of what you are trying to accomplish? do u mean if u hide the c: folder and then unhide through turing type of thing?
Ya but only one game at a time I have 5 mini games. |
|
|
|
|
![](images/spacer.gif) |
uberwalla
![](http://www.mac-help.com/images/starwars.gif)
|
Posted: Thu Dec 14, 2006 9:50 pm Post subject: (No subject) |
|
|
ok sorry i am still a little confused i got that u want them to be able to unlock something. and that u want a folder hidden.
so what im getting is that u have a encrypted folder or some hidden folder thing that when they get to a certain lvl it unlocks? then appears and they can see the files?
if thats the case im not sure u can hide a folder through turing. i know u can encrypt and decrypt text though.
another possibility in this case would be to do something like pick a file hosting site and if they unlock something then send them a link to the file? |
|
|
|
|
![](images/spacer.gif) |
cavetroll
![](http://compsci.ca/v3/uploads/user_avatars/9161761347fd5efa4f4b5.jpg)
|
Posted: Thu Dec 14, 2006 10:01 pm Post subject: (No subject) |
|
|
What I'm trying to do is copy the file from the hidden folder into an accessible folder so the user can play it. I think you can do that. If not thanks anyway to all that helped me. |
|
|
|
|
![](images/spacer.gif) |
uberwalla
![](http://www.mac-help.com/images/starwars.gif)
|
Posted: Thu Dec 14, 2006 10:06 pm Post subject: (No subject) |
|
|
o my bad. i went totally wack off what u were trying to say. u can use either the File commands to copy a certain file. or the Dir commands to move the whole folder out of hidding. i dont know all the commands off by heart what they do but take a look at turing reference or take a look in tutorials section. (use search or Turing Walkthrough) there is for sure a tut. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
CodeMonkey2000
|
Posted: Thu Dec 14, 2006 10:51 pm Post subject: (No subject) |
|
|
im pretty sure you cant do that. but i might be wrong. |
|
|
|
|
![](images/spacer.gif) |
cavetroll
![](http://compsci.ca/v3/uploads/user_avatars/9161761347fd5efa4f4b5.jpg)
|
Posted: Fri Dec 15, 2006 11:41 am Post subject: (No subject) |
|
|
Ok i got it to work thanks to all that assisted me with this problem. |
|
|
|
|
![](images/spacer.gif) |
|