Solved directory with trailing space

bluecolor

New member
Local time
9:51 AM
Messages
3
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
 

Attachments

  • error_message.png
    error_message.png
    7.3 KB · Views: 2
Last edited:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
lenovo B460
OS
win 7 home premium
CPU
i5
Memory
8G
Graphics Card(s)
NVIDIAGeforce 310M
Hard Drives
ST950
Antivirus
comodo
Browser
firefox
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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
 

Attachments

  • 1.png
    1.png
    5.6 KB · Views: 2

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
lenovo B460
OS
win 7 home premium
CPU
i5
Memory
8G
Graphics Card(s)
NVIDIAGeforce 310M
Hard Drives
ST950
Antivirus
comodo
Browser
firefox
the problem has solved by using 7-zip to change the file name and also deleted.
Thx for your help on this
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
lenovo B460
OS
win 7 home premium
CPU
i5
Memory
8G
Graphics Card(s)
NVIDIAGeforce 310M
Hard Drives
ST950
Antivirus
comodo
Browser
firefox
Back
Top