Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: directory with trailing space

07 May 2016   #1

win 7 home premium
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.


Attached Images
directory with trailing space-error_message.png 
My System SpecsSystem Spec
07 May 2016   #2

Windows 10 Pro X64

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 System SpecsSystem Spec
08 May 2016   #3

win 7 home premium

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
directory with trailing space-1.png  
My System SpecsSystem Spec

08 May 2016   #4

Windows 7 Professional x64, Arch Linux

My System SpecsSystem Spec
12 May 2016   #5

win 7 home premium

the problem has solved by using 7-zip to change the file name and also deleted.
Thx for your help on this
My System SpecsSystem Spec

 directory with trailing space

Thread Tools

Similar help and support threads
Thread Forum
Files won't delete in directory - can't rename the directory either
So i have 3 files i cannot delete after uninstalling a game. I also cannot rename the folder they are in without windows explorer not responding and i have to restart explorer. I did take ownership method but that froze up to. I went into safe mode, and tried it that way - also didn't delete, it...
General Discussion
Directory vanished, disk space still occupied
Hello! I was repairing a laptop, and as a last step I moved back the backup of the documents I made prior to the reinstall. I was waiting at least half a minute on a write cache buffer flushing enabled system after the moving completed to safely remove the drive, after four failed attempts I...
Hardware & Devices
Fonts look smudged/shadow trailing a little
I was happy and playing Alan Wake, after quitting to desktop, suddenly nowhere out of the blue my fonts and icons look smudged/shadow trailing behind them (ie. shadow of 't just beside 't' if you add text effects in photoshop) a little, I didn't notice something strange like that earlier...I've...
General Discussion
Cannot change directory (CD) to a directory with space in the name
Following the directions outlined in including enabling command extensions outlined in does not permit the CD command to change the...
General Discussion
Replace files in multiple directory, from a single directory
I have a 10 files that have all been categorised into about 40 folders. These files have been damaged. I have a backup of all these files, but they are not categorised and sit in a single directory. Does anyone know of an easy technique to batch replace the damaged files with the originals? ...
General Discussion

Our Sites

Site Links

About Us

Find 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 03:09.
Twitter Facebook Google+