Thanks bigstar, that worked! It's not so often I have to do this, so using a custom command with %d isn't really a problem.
The reason I need to use raw commands: some ftps (running NT I believe) don't show a directory name fully if it starts with one or more spaces. Example:
show up as:
Because of this, you cannot rename or delete such a directory the regular way. It also happens if such a directory is behind a com1 directory (because then, you can't view the listing of that directory directly).