Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Opening Folders using turing!!! plz help!!!!!!!!!!!
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Prince Pwn




PostPosted: Wed Apr 13, 2011 7:32 am   Post subject: 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.

Turing:

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.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 16 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: