[HOWTO] qBittorrent created a folder with a trailing space (solution)

Windows specific questions, problems.

Moderators: Moderator, Global Moderator

Locked
tekko

[HOWTO] qBittorrent created a folder with a trailing space (solution)

Post by tekko » Tue Dec 11, 2012 2:02 am

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
Last edited by tekko on Tue Dec 11, 2012 10:27 am, edited 1 time in total.

huytq
Newbie
Newbie
Posts: 1
Joined: Tue Dec 11, 2012 8:29 am

Re: qBittorrent created a folder with a trailing space (solution)

Post by huytq » Tue Dec 11, 2012 8:32 am

This is just awesome! Thank you so much tekko

User avatar
Peter
Administrator
Administrator
Posts: 1645
Joined: Wed Jul 07, 2010 6:14 pm

Re: qBittorrent created a folder with a trailing space (solution)

Post by Peter » Tue Dec 11, 2012 10:24 am

Sticky time!
- qBittorrent team - server and forum administrator.
- Hungarian translation reviewer/moderator (+ translator).

Join the official qBittorrent Discord!
https://discord.gg/ma66Vv4

User avatar
Nemo
Administrator
Administrator
Posts: 1518
Joined: Sat Jul 24, 2010 6:24 pm

Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)

Post by Nemo » Tue Dec 11, 2012 6:59 pm

Thanks for your input tekko :).
Forum Rules and Guidelines

Forum Admin.
Dutch & Turkish Translator.


Image
Image

tekko

Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)

Post by tekko » Tue Dec 11, 2012 8:21 pm

you're welcome

Jinx
Newbie
Newbie
Posts: 5
Joined: Sat Sep 21, 2013 2:58 pm

Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)

Post by Jinx » Mon Feb 24, 2014 2:56 am

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 "

Strat
Newbie
Newbie
Posts: 3
Joined: Fri Jul 25, 2014 5:19 pm

Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)

Post by Strat » Fri Jul 25, 2014 6:16 pm

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. :(

User avatar
ciaobaby
Forum addict
Forum addict
Posts: 2771
Joined: Sat May 18, 2013 4:08 pm

Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)

Post by ciaobaby » Fri Jul 25, 2014 7:51 pm

Download Advanced Renamer and use the Trim function rename pattern.
Smarter than the av-er-age bear, Boo Boo.

http://qbforums.shiki.hu/index.php/topic,3084.0.html

Locked