Author |
Message |
siczy
![](http://bbs.sucaiw.com/UploadFile/20031030633970142.gif)
|
Posted: Tue Nov 25, 2003 7:06 pm Post subject: how can you open c:drive in turing? |
|
|
is there any method that we can use to open C drive in turing?
control panal too~
thanks ![Laughing Laughing](http://compsci.ca/v3/images/smiles/icon_lol.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Andy
|
Posted: Tue Nov 25, 2003 7:07 pm Post subject: (No subject) |
|
|
what do you mean open c: drive? browse it? or open up the folder? opening up the folder is impossible (i think), but browsing is possible... i think catalyst did something like that. |
|
|
|
|
![](images/spacer.gif) |
siczy
![](http://bbs.sucaiw.com/UploadFile/20031030633970142.gif)
|
Posted: Tue Nov 25, 2003 7:08 pm Post subject: (No subject) |
|
|
my account is limited in Win2x,i want to open the c drive somehow |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: Tue Nov 25, 2003 7:12 pm Post subject: (No subject) |
|
|
o, not possible.. i dont think at least... you can execute exes from c drive using turing, but i dont know why you'd need to do that... this can be down in c++ tho, cuz you can open up dos using vc and you can then cpy files from the c drive to your own account |
|
|
|
|
![](images/spacer.gif) |
siczy
![](http://bbs.sucaiw.com/UploadFile/20031030633970142.gif)
|
Posted: Tue Nov 25, 2003 7:13 pm Post subject: (No subject) |
|
|
hehe~never mind then~i'm just curious |
|
|
|
|
![](images/spacer.gif) |
siczy
![](http://bbs.sucaiw.com/UploadFile/20031030633970142.gif)
|
Posted: Tue Nov 25, 2003 7:14 pm Post subject: (No subject) |
|
|
can you help me with the kind of sorting method? |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: Tue Nov 25, 2003 7:16 pm Post subject: (No subject) |
|
|
sorting method? what sorting method? i didnt say nothing about sorting... |
|
|
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: Tue Nov 25, 2003 9:35 pm Post subject: (No subject) |
|
|
i'm not sure what kind of help you need with sorting but it turns out it is possible to access (open) the c: using turing. good ol' Sys.Exec!
code: |
if Sys.Exec ("C:") then
end if
|
i just used an if statement because Sys.Exec is a function, and therefore returns a value. you could also have put Sys.Exec ("C:") but it'd be dumb to have a window pop up and say true.
or you can copy a shortcut to something (anything), then select the shortcut, press ALT+ENTER (assuming the admin has restricted right-clicking), and change the shortcut path to wherever you want to go. problem with that one is that i think someone found out about that last year and now i can't use ALT+ENTER, and even bringing in a copy of a shortcut to c: didn't work for some reason.
but the moral of the story is this: stop trying to get access to areas that people don't want you getting into, because that's bad. so, there you go. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Andy
|
Posted: Tue Nov 25, 2003 9:39 pm Post subject: (No subject) |
|
|
OMG!!! ahhh, nick, dang, you have too much free time... oh man... thats cool.. i'd give you bits, but u dont need them and i need them lol |
|
|
|
|
![](images/spacer.gif) |
Tendulkar
|
Posted: Tue Nov 25, 2003 10:05 pm Post subject: Re: how can you open c:drive in turing? |
|
|
siczy wrote: is there any method that we can use to open C drive in turing?
control panal too~
thanks ![Laughing Laughing](http://compsci.ca/v3/images/smiles/icon_lol.gif)
% HERE IS YOUR PROGRAM:
var number : int
var file : string
put "Enter number 1 for C DRIVE"
put "Enter number 2 for A DRIVE"
put "Enter number 3 for D DRIVE"
put skip
put "Enter your number now: " ..
get number
% CHECKS WHICH NUMBER HAS BEEN PRESSED
loop
if number = 1 then
file := "c:"
exit
elsif number = 2 then
file := "a:"
exit
elsif number = 3 then
file := "d:"
exit
else
put "Enter the correct number (1,2,3): " ..
get number
end if
end loop
% DISPLAYS
if not Sys.Exec (file) then
put "An Error Has Occured while opening the Drive ", file, " ", Error.LastMsg
else
put "Success"
if number = 1 then
put "Drive C will open now"
elsif number = 2 then
put "Drive A will open now"
else
put "Drive D will open now"
end if
end if
All you hae to do is just use the Sys.Exec statements. |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: Tue Nov 25, 2003 10:08 pm Post subject: (No subject) |
|
|
unmm... thats what mazer wrote |
|
|
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: Tue Nov 25, 2003 10:21 pm Post subject: (No subject) |
|
|
hmm.... i didn't think you'd be able to open control panel but i guess you can. not very different either
code: |
if Sys.Exec ("Control Panel") then
end if
|
but i don't think you'd need it. even on school computers you can get to the control panel, but there isn't much you can do there so it's pretty useless. |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: Tue Nov 25, 2003 10:26 pm Post subject: (No subject) |
|
|
not at our school, you cant even access control panel anymore... we got to change our pass by using ctrl alt del now |
|
|
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: Tue Nov 25, 2003 10:28 pm Post subject: (No subject) |
|
|
dodge_tomahawk wrote: not at our school, you cant even access control panel anymore... we got to change our pass by using ctrl alt del now
oh? geez! if i were a highschool compsci teacher i'd give everyone in my class (the one's who cared about comspsci, anyways) teacher accounts so they could do all the shit they want. |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: Tue Nov 25, 2003 10:31 pm Post subject: (No subject) |
|
|
lol, so they can do what martin and alex were doing to rui and meng on the day of dwite in a middle of a test? |
|
|
|
|
![](images/spacer.gif) |
|