Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: problem with spacing in "Program Files"  (Read 2690 times)

0 Members and 1 Guest are viewing this topic.

Zamn

  • Guest
problem with spacing in "Program Files"
« on: April 25, 2006, 01:14:52 PM »
Hi, I'm trying to delete some files from D:\Program Files\AIM, but when I type in rmdir D:\Program Files\AIM into the CMD it says
Code: [Select]
D:\Program, Are you sure?(Y/N)? y
The system cannot find the file specified.
Files\AIM, Are you sure (Y/N)? y
The system cannot find the patch specified.

I tried using rmdir cd "D:\Program Files\AIM" /s /q but that doesn't work either.
Then I tried rmdir ("D:\Program Files\AIM") /s /q and that doesn't work either.

Can someone please tell me what I'm doing wrong here and post and example of what I should do?

-thanks.

almn

  • Guest
Re: problem with spacing in "Program Files"
« Reply #1 on: April 25, 2006, 04:20:41 PM »
Hello,

I am not sure of what "rmdir" is suppose to do , I think the command for delete is "del".

The following example would work :

del "D:\Program Files\AIM\*.*"
if you want to use rmdir:
rmdir "D:\Program Files\AIM\*.*"

Glad to help :)

Almn

Dilbert

  • Moderator


  • Egghead

  • Welcome to ComputerHope!
  • Thanked: 44
    Re: problem with spacing in "Program Files"
    « Reply #2 on: April 25, 2006, 05:23:33 PM »
    rmdir is for directories, not files. RD may be more familiar to you, almn...?

    Zamn, you almost had it. Try this:

    Code: [Select]
    rmdir "D:\Program Files\AIM" /s /q
    Note the lack of "cd". 8-)
    "The geek shall inherit the Earth."

    Zamn

    • Guest
    Re: problem with spacing in "Program Files"
    « Reply #3 on: April 25, 2006, 06:47:51 PM »
    I forgot to try it without CD :-/ :-/

    but thanks alot for telling me the correct way (:

    almn

    • Guest
    Re: problem with spacing in "Program Files"
    « Reply #4 on: April 28, 2006, 08:00:56 PM »
    Sorry ,I misunderstood the questions  :-[ :-/

    Lucky your here  ;D

    Almn