Cannot get path to work.


  1. Posts : 514
    Windows 7 Ultimate
       #1

    Cannot get path to work.


    Hi.
    I need to be able to make a path to a file.
    The path I have made doesn't work.

    I have attached what I have done.

    What am I lacking?.
    Attached Thumbnails Attached Thumbnails Cannot get path to work.-adb.jpg  
      My Computer


  2. Posts : 1,800
    Windows 7 Pro x64 SP1
       #2

    Darkhorse, system variables work differently. What you can do is to append to your %PATH% statement
    to add the full path to the executable to the end of the existing path statement. But a caution, the path statement has a limitation of around 256 characters so it could mess things up if you added to the path statement of variables.

    Your file is not in the existing path so that's why it can't be found.

    Rich
      My Computer


  3. Posts : 514
    Windows 7 Ultimate
    Thread Starter
       #3

    Many thanks for your reply.

    Is it such ?:

    Code:
    C:\Program Files\IDM Computer Solutions\UltraEdit\;C:\Program Files\IDM Computer Solutions\UltraCompare\;D:\Program Files\Android\android-sdk\platform-tools\adb.exe
      My Computer


  4. Posts : 1,800
    Windows 7 Pro x64 SP1
       #4

    darkhorse said:
    Many thanks for your reply.

    Is it such ?:

    Code:
    C:\Program Files\IDM Computer Solutions\UltraEdit\;C:\Program Files\IDM Computer Solutions\UltraCompare\;D:\Program Files\Android\android-sdk\platform-tools\adb.exe
    all command line files that include spaces in directories require enclosure in " marks.

    the file name adb.exe is not necessary if you are trying to set the path to include thedirectory where adb.exe is located.

    Rich
      My Computer


  5. Posts : 3,371
    W10 Pro desktop, W11 laptop, W11 Pro tablet (all 64-bit)
       #5

    The path to a file includes the complete folder hierarchy for the system to locate the file but does not include the filename itself. Therefore, in order for adb.exe to be found via the PATH environment variable, you need to set it like so:
    Code:
    C:\Program Files\IDM Computer Solutions\UltraEdit\;C:\Program Files\IDM Computer Solutions\UltraCompare\;D:\Program Files\Android\android-sdk\platform-tools\
    In addition, adb.exe MUST exist in that folder.
      My Computer


  6. Posts : 514
    Windows 7 Ultimate
    Thread Starter
       #6

    Many thanks gent's, now it works
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:49.
Find Us