About
Community
Bad Ideas
Drugs
Ego
Erotica
Fringe
Society
Technology
register | bbs | search | rss | faq | about
meet up | add to del.icio.us | digg it
Go Back   Community > Technology > Network (in)Security
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Network (in)Security Interesting hacks and cracks. Info on firewalls, TCP/IP, encryption, networks, and security. The ins and outs of the phone system, caller services, how things work, what's illegal and what's not, cellular phones, beepers, telephony legislation, the PUC, ISDN, taps, who's listening, and switches. Talking about phones, hacking systems, technical advice, and such is completely LEGAL in the United States -- it's covered by the First Amendment. What's illegal is conspiracy to commit a crime. So if you say something like "Meet me at 2am so we can crack a can" or "I changed my cell phone's number myself" you are criminally liable. Stating "You can crack a can by doing thus-and-so" or "If you wanted to change a cell phone's number, you could do it like so" is perfectly OK. Posting passwords, calling card numbers, or credit card numbers is forbidden on this network. Posting such info will get you booted off the net.

Reply
 
Thread Tools Display Modes
 #1 
Old 2008-10-30, 20:06
wargsm wargsm is offline
Regular
 
Default Environment variables [.bat]

Looking for some help with this.

So this is what I've set up at home.
Control Panel > System > Advanced > Environment Variables > Edit "Path"

Added the location "C:\documents and settings\username\My Documents\shortcuts"

In that folder I added shortcuts to my most frequently opened folders, programs and menus. Gave them short names.

So now when I press win + R, and type "pic", "My pictures" opens up. When I type "tv", my downloaded tv eps folder opens. You get the idea.

This speeds things up a great deal, and I want to use it at uni.

I can change the environment variable in the usual way, however it resets to default when I log off. Seeing as the whole point of doing this is efficiency, I want to set a batch script that changes the environment variable. That way I just have to run it when I login.

So far I have tried a few things, but none of them worked.

Tried:

win+r
cmd
set path="big;list;of;existing;paths;plus;my;new;one;
set p


This appears to work, however it does not. It adds the variable to "System variables", but does not add it to the "User variables". That doesn't matter at home, but it does at uni. So I still have to add it manually via the advanced tab in System.

Now I can't seen to find a command that will allow me to add a value to the "User variables", only system.

So I tried:

win + r
regedit
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Sessio n Manager\Environment\]


In there I found the value "Path", voila! thats just what I need to edit. One problem....I don't have the fucking permissions required to edit the registry...


So erm, any help would be appreciated. And I know, the amount of time spent trying to do this far dwarfs the amount of time I will ever save. But I want to figure it out...
 #2 
Old 2008-10-31, 16:45
jwchips jwchips is offline
Regular
 
Default Re: Environment variables [.bat]

Right, so you don't have write permissions to the registry. You're probably not going to get them, and I have no advice to help you get said permissions.

However, instead of changing the run path, couldn't you just add the folder to the context menu? I can't fully recall how to do this, but I know it's extremely simple. I think the Context folder is in Local Settings or Application Data in C;/Documents & Settings/[your.user.name]/

This would add your folder and contents in the default context menu (right click). A batch file to make this would be simpler, and you should have all the permissions you need.

Or I could be wrong. I've used Linux for too long now....
 #3 
Old 2008-11-03, 11:34
wargsm wargsm is offline
Regular
 
Default Re: Environment variables [.bat]

Thanks for the help, but I can't edit the context menu either. That would be a decent trade-off though. I need registry edit permissions again for that to take place every time I log in.
 #4 
Old 2008-11-03, 14:52
Moderator
 
Padmasana
Default Re: Environment variables [.bat]

If you have access to the task manager you could use the old school trick of elevating your access to system. I can't quite remember how (it's an XP trick). You just kill explorer.exe and set a time to launch it in the command prompt.
 
To the best of our knowledge, the text on this page may be freely reproduced and distributed.
 

totse.com certificate signatures
 
 
About | Community | Bad Ideas | Drugs | Ego | Erotica | Fringe | Society | Technology
Hot Topics