Page 1 of 1
[HOWTO] qBittorrent created a folder with a trailing space (solution)
Posted: Tue Dec 11, 2012 2:02 am
by tekko
Since the folder name contains a trailing space (i.e. "c:\qbt\test "), I couldn't remove it normally. I've found the solution and I'd like to share it.
http://support.microsoft.com/kb/320081
Re: qBittorrent created a folder with a trailing space (solution)
Posted: Tue Dec 11, 2012 8:32 am
by huytq
This is just awesome! Thank you so much tekko
Re: qBittorrent created a folder with a trailing space (solution)
Posted: Tue Dec 11, 2012 10:24 am
by Peter
Sticky time!
Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)
Posted: Tue Dec 11, 2012 6:59 pm
by Nemo
Thanks for your input tekko

.
Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)
Posted: Tue Dec 11, 2012 8:21 pm
by tekko
you're welcome
Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)
Posted: Mon Feb 24, 2014 2:56 am
by Jinx
For those too lazy to read the article, the primary two solutions offered for our case are: (1) use the DOS 8.3 filename in a command prompt window ("cmd.exe") or (2) apparently some commands will work with "\\?\" prepended to the path, e.g.:
Code: Select all
del "\\?\c:\path_to_file_that contains a trailing space.txt "
Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)
Posted: Fri Jul 25, 2014 6:16 pm
by Strat
Can anybody shed some light on what I should do to prevent qBittorrent from doing this in the future?
I really appreciate what you did Jinx but am wondering if there would be a way to please outline the instructions in a more intuitive way? It's a bit too abstract for me to follow and the Microsoft article is massive and unclear.

Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)
Posted: Fri Jul 25, 2014 7:51 pm
by ciaobaby
Download
Advanced Renamer and use the Trim function rename pattern.