
-----------------------------------
Krocker
Tue Mar 01, 2011 9:35 pm

Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
how do i make turing open up a hidden folder after the password was entered correctly? The folder is hidden and i want turing to open that folder when the users input the right password. is that posible? and how pplz, i have been at this all day!!!!!

-----------------------------------
mirhagk
Tue Mar 01, 2011 9:36 pm

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
from what I understand Turing does not have the ability to do that. It was developed for high school students, and so has many restrictions.

-----------------------------------
Krocker
Tue Mar 01, 2011 9:42 pm

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
darn, r u sure there is no way of creating a program that opens up a hidden folder if the password is correct?. is there another way to do that, maybe using a 3rd party or another programming software?

-----------------------------------
Insectoid
Tue Mar 01, 2011 10:13 pm

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
Well  you could hide the folder in Explorer, and then just write a program to open it like a shell. Or if possible execute a console command to open Explorer to that folder.

-----------------------------------
Tony
Tue Mar 01, 2011 10:20 pm

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
I think you'd have to specify by which means a folder is hidden, and what is responsible for the password. What kind of content do you hope to keep in such a folder?

-----------------------------------
mirhagk
Wed Mar 02, 2011 12:05 am

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
If it's specific data, you could write something that would encrypt the data, and decrypt it with the right password

-----------------------------------
Krocker
Wed Mar 02, 2011 7:27 am

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
its a folder that constains other folders with pictures, videos and documents. its for my usb. im trying to create a password that when typed correctly its displays the folder with the contant.

-----------------------------------
ecookman
Wed Mar 02, 2011 11:08 pm

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
Just wondering, is the folder just set to a hidden status or is it plainly not visible on the drive due encryption.
If its just hidden, it'd be very easy to find, and its not hard to notice that a drive has used space and no folders, and its simple as folder options- view-  show hidden folders.

as for a password its a basic if statement (I'm kinda foggy with Turing's syntax but its all here in terms of logic]

loop
var password : 

-----------------------------------
Krocker
Thu Mar 03, 2011 7:20 am

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
k, i have something like that, but the problem is trying to get the folder to open, the pasword works. the folder is hidden as an attribute not encrypted. so ya.

-----------------------------------
ecookman
Fri Mar 04, 2011 10:17 pm

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
Like the others I'm not sure that Turing can do that, BUT I know that using VB scrips you can.

-----------------------------------
mirhagk
Sun Mar 06, 2011 3:24 pm

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
Sys.Exec lets you do system commands, just sends a string to the operating system for it to run

for instance

if not Sys.Exec ("secret") then
    %do some error handling or something
    put "doesnt exist"
end if

will tell the operating system to run "secret".

If this is a program or a file, itll run or open the file. However if it is a folder, itll simply pop up a window with the folder's contents in it.

I've tested it out with the hidden file, and yes it works.


I'm pretty sure this is what your asking for.

EDIT: Again this is not a very secure way to do things, as you can view hidden folders if you have the option enabled. But on school computers you may not be able to, so it should suffice on school computers

-----------------------------------
Tony
Sun Mar 06, 2011 3:38 pm

Re: RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
But on school computers you may not be able to
but school's system administrators can.

-----------------------------------
mirhagk
Sun Mar 06, 2011 4:23 pm

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
well yeah, but it's not a very secure thing like i said.

also there are many explorer programs that you can use that will disply hidden folder

-----------------------------------
Grim
Tue Mar 08, 2011 7:09 pm

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
I was also of the understanding that this forum had a strict "No System commands" policy.

As said before, you could do it, but there wouldn't be much point. You could hide the folder and run a saved script from Turing, but again, why bother?

-----------------------------------
Grim
Tue Mar 08, 2011 7:09 pm

Re: RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
But on school computers you may not be able to
but school's system administrators can.

If they know how to.

-----------------------------------
Prince Pwn
Wed Apr 13, 2011 7:32 am

RE:Opening Folders using turing!!! plz help!!!!!!!!!!!
-----------------------------------
If you want a simple program that will ask for a password to open a folder, create a string variable with a password. Next prompt the user to enter a password. If password = stored password then Sys.Exec "Foldername". Even if it's hidden it will open. 


var password := "qwerty123456"
var gPass : string

loop

    put "Enter a password: " ..
    get gPass : *

    if gPass = password then
        if Sys.Exec ("C:/SecretFolder") then
            put "Folder unlocked!"
            exit
        end if
    else
        put "Invalid Password!"
    end if

end loop


If you wish to get more advanced, implement encryption: http://compsci.ca/v3/viewtopic.php?t=25583

I'm not sure if Turing can check the attribute of a directory to see if it's hidden though.
