Author Topic: [HOWTO] qBittorrent created a folder with a trailing space (solution)  (Read 13403 times)

tekko

  • Guest
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 Edit: December 11, 2012, 11:27:40 AM by shiki »

huytq

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: qBittorrent created a folder with a trailing space (solution)
« Reply #1 on: December 11, 2012, 09:32:18 AM »
This is just awesome! Thank you so much tekko

Peter

  • Administrator
  • Forum addict
  • *****
  • Posts: 1547
  • Karma: +37/-2
    • View Profile
Re: qBittorrent created a folder with a trailing space (solution)
« Reply #2 on: December 11, 2012, 11:24:09 AM »
Sticky time!
- qBittorrent team - server and forum administrator.
- Hungarian translation reviewer/moderator (+ translator).

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

Nemo

  • qBittorrent Forum
  • Administrator
  • Forum addict
  • *****
  • Posts: 1466
  • Karma: +90/-0
    • View Profile
Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)
« Reply #3 on: December 11, 2012, 07:59:37 PM »
Thanks for your input tekko :).
Forum Rules and Guidelines

Forum Admin.
Dutch & Turkish Translator.




tekko

  • Guest
Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)
« Reply #4 on: December 11, 2012, 09:21:59 PM »
you're welcome

Jinx

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: [HOWTO] qBittorrent created a folder with a trailing space (solution)
« Reply #5 on: February 24, 2014, 03:56:59 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]
del "\\?\c:\path_to_file_that contains a trailing space.txt "

Strat

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
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. :(

ciaobaby

  • Forum addict
  • ****
  • Posts: 2778
  • Karma: +98/-24
  • No quarter asked... No quarter given.
    • View Profile
    • WMTeu
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