+ Post New Thread
Results 1 to 5 of 5
General Chat Thread, Didn't Know This Until This Evening: Command Prompt Tip: Drag Folder To Auto Complete in General; At the Command Prompt type CD then a space then drag a folder to the Command Prompt to have the ...
  1. #1

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,304
    Thank Post
    331
    Thanked 1,192 Times in 814 Posts
    Blog Entries
    2
    Rep Power
    1065

    Didn't Know This Until This Evening: Command Prompt Tip: Drag Folder To Auto Complete

    At the Command Prompt type CD then a space then drag a folder to the Command Prompt to have the selected path to the folder auto completed:


  2. 5 Thanks to DaveP:

    ellsandell (1st February 2014), jamesreedersmith (1st February 2014), john (3rd February 2014), TheBinMan (2nd February 2014), ZeroHour (3rd February 2014)

  3. #2
    jamesreedersmith's Avatar
    Join Date
    Sep 2009
    Location
    Ruskington
    Posts
    1,104
    Thank Post
    77
    Thanked 242 Times in 216 Posts
    Rep Power
    74
    Cool tip thanks

  4. #3

    Join Date
    Nov 2011
    Posts
    603
    Thank Post
    84
    Thanked 21 Times in 19 Posts
    Rep Power
    9
    Can also go into the folder, hold down shift and right click.
    You get a open with command prompt option

  5. Thanks to dany2010 from:

    DaveP (2nd February 2014)

  6. #4


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,123
    Thank Post
    203
    Thanked 2,388 Times in 1,768 Posts
    Rep Power
    703
    Probably worth mentioning that dragging a file or folder only works as long as the Command Prompt hasn't been elevated.

    Also useful is ContextConsole and the PowerShell script below which add elevated Command Prompt and PowerShell options to your context menu. With these, you can do what @dany2010 suggested as this is often quicker than dragging and dropping folders onto Command Prompt windows.



    Code:
    $menu = 'Open Windows PowerShell'
    $command = "$PSHOME\powershell.exe -NoExit -NoProfile -Command ""Set-Location '%V'"""
     
    'directory', 'directory\background', 'drive' | ForEach-Object {
        New-Item -Path "Registry::HKEY_CLASSES_ROOT\$_\shell" -Name runas\command -Force |
        Set-ItemProperty -Name '(default)' -Value $command -PassThru |
        Set-ItemProperty -Path {$_.PSParentPath} -Name '(default)' -Value $menu -PassThru |
        Set-ItemProperty -Name HasLUAShield -Value ''
    }
    Source: http://www.powershellmagazine.com/20...dows-explorer/
    Last edited by Arthur; 1st February 2014 at 10:36 PM.

  7. 2 Thanks to Arthur:

    DaveP (2nd February 2014), ZeroHour (3rd February 2014)

  8. #5

    Ephelyon's Avatar
    Join Date
    Aug 2008
    Location
    Cheshire, England
    Posts
    1,461
    Thank Post
    230
    Thanked 280 Times in 161 Posts
    Rep Power
    133
    You can also start typing the first few characters of a sub-folder/file name (until it's unique) and then press TAB to auto-complete.

  9. Thanks to Ephelyon from:

    DaveP (2nd February 2014)

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 1
    Last Post: 17th April 2013, 08:46 AM
  2. Replies: 1
    Last Post: 4th January 2013, 09:18 PM
  3. I didn't know you could do this!
    By theeldergeek in forum General Chat
    Replies: 80
    Last Post: 28th June 2011, 09:37 PM
  4. Replies: 23
    Last Post: 2nd March 2007, 03:19 PM
  5. Replies: 2
    Last Post: 14th November 2006, 08:21 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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