- 03-16-2011, 06:52 PM #1
[TIPS] Setting default directory on CMD
Well hello ! This is a TIP for all of you modders out there

Well most of us want to verify when we connect our phone to the computer if the phone is connected properly to the phone so we execute the command ADB DEVICES but before that, what do you do? *CD* to the directory? Well I have found a way so that we don't have to do all of that, but there is one problem, we have to enter to the registry editor in windows, in which if we do something up we could be screwed
Open RUN by WindowsLogo+R or Start>Run>
Now type in: Regedit
Now we are going to see ALOT OF THINGS but don't freak out
Double click HKEY_LOCAL_MACHINE, and then double click SOFTWARE, again look and double click Microsoft and now click Command Processor.
We are supposed to see a little table at the RIGHT. We double click on autorun. Now go to your AndroidSDK folder (Open My Computer click Local Disk, Program Files, etc..) Reach your platform-tools folder or wherever you have your adb.exe, now look at the top, you are supposed to see somethine like C:\Local Disk\Program Files\AndroidSDK\Platform-tools or something like that just make sure it ends on Platform-tools click where its says LocalDisk\Program Files... and copy it.
Go to the registry and you are supposed to see a "value data" under AutoRun, select it all and delete it, now copy your destination of your ADB/SDK folder.
READ THIS:
I know much of you guys get freaked out while doing this but don't back up, if you back up then its ok, I will create a script that does this job for you, but it will take some time for me to find out what I have to do to create this script
GIVE A THANKS IF YOU LIKE/LOVE or this HELP/MADE YOUR life easier
PLEASE 
EDIT:
[MENTION=244072]phoe[/MENTION]nixsong6 this is your way to do this.
Editing the Registry is making it more complicated than it needs to be and opens up the chance for mistakes.
Editing the PATH variable is also possible from a few other locations:
Right click "My Computer" -> Select Properties -> Select Environment ->In System Variables, click 'edit' for the PATH variable and add the path to platform-tools and tools folders in the SDK. Separate and end the paths with a semicolon
In UNIX systems (OSX/Linux) Edit or create the ~/.bash_profile (A hidden file) and add
Code:
There is a <dollar sign>PATH between the equal sign and the colon, but it won't show up in the codeCode:PATH=:<SDK Path>/platform-tools:<SDK Path>/tools
The easiest way to set it up in a Unix system is to open up command prompt, and type
Code:
If the file exists, it will open up to be edited, otherwise it will be created. Then add the line from above.Code:nano ~/.bash_profile
These are the changes
AFTER

BEFORE

INSTRUCTIONS

2.

3.

4.

5.

"Remember that life loves you, but most of the time, you don't love life"



-
2 Users Say Thank You to DJGHOSTS3V3N For This Useful Post
Pzyduck (03-17-2011), rachelm920 (05-16-2011)
- 03-17-2011, 05:18 AM #2
- Join Date
- Apr 2009
- Location
- La Rioja - Argentina
- Posts
- 5,173
- Thanks
- 1,883
- Thanked 4,227 Times in 1,845 Posts
- Blog Entries
- 6
- Downloads
- 181
- Uploads
- 360
Thankssss

Great guide

- 05-16-2011, 05:46 PM #3
Its a little different in Windows 7
Right click "My Computer" -> Select Properties -> On the left side select Advanced System Settings -> Ensure the Advanced tab is selected -> Select Environment Variables. Then continue with the same instructions.
Have a great day!
Rachel
Mine: Moto Cliq rooted with Psuedo MIUI ROM
Hubbie's: Samsung Vibrant 4G
Daughter's: T-mobile Comet <--- H8 it!
- 05-20-2011, 02:10 PM #4
Thank you!

"Remember that life loves you, but most of the time, you don't love life"





LinkBack URL
About LinkBacks
Reply With Quote

