directory with trailing space


  1. Posts : 3
    win 7 home premium
       #1

    directory with trailing space


    due to space of my c drive, I install software in d drive of directory d:\Program Files\
    Today, instead of browse the directories, I type the path but add an trailing space by mistake in the path. After installing the software, I find that there are two almost identical directory paths exist with one have a trailing space.
    The names of the installed software exist in both directories. I can run the software by invoke the software in the path without trailing space. But when I click software in the other path, it show error message as attached Also, same software will be deletd also in the trailing path directory if uninstall in the directory without trailing space.
    Please advice how to delete the directory with trailing space.

    thanks
    Attached Thumbnails Attached Thumbnails directory with trailing space-error_message.png  
    Last edited by bluecolor; 07 May 2016 at 05:06. Reason: provide more testing result
      My Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    What happens if you try to delete the one with the trailing back from Windows Explorer?

    You could try deleting it from a Command Prompt: del "D:\Program Files \dzh365"

    Just make sure you enclose the full path in double quotes.
      My Computer


  3. Posts : 3
    win 7 home premium
    Thread Starter
       #3

    Actually, I want to delete the whole directory d:\Program Files \
    I follow your instruction but failed. The directory with trailing space still exist.
    see attached picture 1.png
    Attached Thumbnails Attached Thumbnails directory with trailing space-1.png  
      My Computer

  4.   My Computer


  5. Posts : 3
    win 7 home premium
    Thread Starter
       #5

    the problem has solved by using 7-zip to change the file name and also deleted.
    Thx for your help on this
      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 16:32.
Find Us