Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

%temp% not working

Aug 5, 2007 3:26AM PDT

Hi,

I usually use %temp% to clear the temporary internet files. I have installed Dual OS - Win 98 in C: and Win XP in D:. I am using Win XP mainly. For the past few months when i try to use this command it throws an error at me saying "Windows cannot find D:\Documents". But i know that usually there will no folder called Documents rather than Documents and Settings. Can anyone tell me the cause for this problem and how can it be rectified?

Thanks and Regards,
Nataraj.R

Discussion is locked

- Collapse -
Works for me. But...
Aug 5, 2007 3:47AM PDT

The directory might have a SPACE in it and your message looks to be what happens when we forget how to handle directories with spaces.

Bob

- Collapse -
%temp%
Aug 6, 2007 2:51AM PDT

Thanks Bob. In this case what i have to do? I dont know wht handling the directory with spaces means. Can you pls help.

- Collapse -
Example.
Aug 6, 2007 3:21AM PDT

Let's open a command prompt. Now try this.

CD C:\

No problem!

Now try CD Documents and Settings

That works. Now try it with command.com processor. Boom.

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Documents and Settings\proffitt>cd\

C:\>cd documents and settings

C:\Documents and Settings>command
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-1999.

C:\DOCUME~1>cd\

C:\>cd documents and settings
Too many parameters - and

- Collapse -
%temp%
Aug 7, 2007 3:36AM PDT

Yes now i can understand what you are saying. But how is related to the problem that i am having. Is there any solution for it?

- Collapse -
Let's say %temp% has a space in it?
Aug 7, 2007 4:57AM PDT

If you use that in a batch file and command.com processes said batch file, it's dead.

Bob

- Collapse -
Thanks
Aug 8, 2007 3:01AM PDT

Thanks a lot Bob. Thank you for your help.

- Collapse -
The solution is to right click on ...
Aug 8, 2007 5:15AM PDT

"My Computer", select the Environment tab, t5hen in both the system and user sections place quotes around "C:\Documents and settings\{user_name}\...\Temp" then set and apply.