Results 1 to 4 of 4
  1. #1
    DJGHOSTS3V3N's Avatar
    offline The Helper
    Join Date
    Oct 2010
    Location
    In the Carribean
    Posts
    1,685
    Thanks
    111
    Thanked 369 Times in 223 Posts
    Downloads
    4
    Uploads
    0

    [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:
    Code:
    PATH=:<SDK Path>/platform-tools:<SDK Path>/tools
    There is a <dollar sign>PATH between the equal sign and the colon, but it won't show up in the code

    The easiest way to set it up in a Unix system is to open up command prompt, and type
    Code:
    Code:
    nano ~/.bash_profile
    If the file exists, it will open up to be edited, otherwise it will be created. Then add the line from above.


    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. 2 Users Say Thank You to DJGHOSTS3V3N For This Useful Post

    Pzyduck (03-17-2011), rachelm920 (05-16-2011)

  3. #2
    Pzyduck's Avatar
    offline Super Moderator X
    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

  4. #3
    rachelm920's Avatar
    offline Of Mice and Modders
    Join Date
    Aug 2010
    Location
    Hartford, CT, USA
    Posts
    59
    Thanks
    16
    Thanked 7 Times in 4 Posts
    Downloads
    12
    Uploads
    0
    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!

  5. #4
    DJGHOSTS3V3N's Avatar
    offline The Helper
    Join Date
    Oct 2010
    Location
    In the Carribean
    Posts
    1,685
    Thanks
    111
    Thanked 369 Times in 223 Posts
    Downloads
    4
    Uploads
    0
    Thank you!

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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •