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 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Krocker




PostPosted: Tue Mar 01, 2011 9:35 pm   Post subject: 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!!!!!
Sponsor
Sponsor
Sponsor
sponsor
mirhagk




PostPosted: Tue Mar 01, 2011 9:36 pm   Post subject: 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




PostPosted: Tue Mar 01, 2011 9:42 pm   Post subject: 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




PostPosted: Tue Mar 01, 2011 10:13 pm   Post subject: 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




PostPosted: Tue Mar 01, 2011 10:20 pm   Post subject: 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?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
mirhagk




PostPosted: Wed Mar 02, 2011 12:05 am   Post subject: 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




PostPosted: Wed Mar 02, 2011 7:27 am   Post subject: 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




PostPosted: Wed Mar 02, 2011 11:08 pm   Post subject: 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]
Turing:

loop
var password : [string for text int for numbers]
put "what is the password"
     get password
if password = "[what you want it to be]" then
     put "correct"
         else
         put "incorrect"
         delay (1000)
 exit
%here is where you would put any following action but i do believe that insectoid is correct
end loop
Sponsor
Sponsor
Sponsor
sponsor
Krocker




PostPosted: Thu Mar 03, 2011 7:20 am   Post subject: 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




PostPosted: Fri Mar 04, 2011 10:17 pm   Post subject: 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




PostPosted: Sun Mar 06, 2011 3:24 pm   Post subject: 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
Turing:

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




PostPosted: Sun Mar 06, 2011 3:38 pm   Post subject: Re: RE:Opening Folders using turing!!! plz help!!!!!!!!!!!

mirhagk @ Sun Mar 06, 2011 3:24 pm wrote:
But on school computers you may not be able to

but school's system administrators can.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
mirhagk




PostPosted: Sun Mar 06, 2011 4:23 pm   Post subject: 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




PostPosted: Tue Mar 08, 2011 7:09 pm   Post subject: 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




PostPosted: Tue Mar 08, 2011 7:09 pm   Post subject: Re: RE:Opening Folders using turing!!! plz help!!!!!!!!!!!

Tony @ 6/3/2011, 15:38 wrote:
mirhagk @ Sun Mar 06, 2011 3:24 pm wrote:
But on school computers you may not be able to

but school's system administrators can.


If they know how to.
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 1 of 2  [ 16 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: