Command Prompt and Desktop Location

G

Guest

Hi guys,

I have windows xp home editon..

Recently I ran across a corrupt .jpg file that will close all my running
prgrams when opened or even when seen in a folder as just location. for
example, if i open a folder containing that file; it will close all my
running programs including the file folder. In porcess of putting this file
in "recyle bin"; I stupidly dragged it on my
desktop. And, now I cannot see anything on my desktop, nothing... not even
the start menu or title bar or icon on the desktop.

I can get to the Task Manager and can open the MS-DOS command program. I am
trying to delete the file from my desktop using command prompt. I am no
good with command as you can probably guess. I can still use my computer if
I log in as different user. This is something I tried that didnot work.

From current directory of C:\Documents and Settings\UserName\Desktop
I tried this command;
del *.*

It delelted something. But upon relogging as that username, I still see that
file just for just for a half second on the desktop. I just cannot seem to
be able to delete it.
Can anybody Help...
I need be logged in as that user..becasue I have so many things under that
name that is not shared...I'd really appreciate your help...
One thing I not sure is the location of my desktop..I mean there seemed to
be 2 different locations...I dont'know..
Thanks guys....
-manish
 
P

Pegasus \(MVP\)

ManishPatel2005 said:
Hi guys,

I have windows xp home editon..

Recently I ran across a corrupt .jpg file that will close all my running
prgrams when opened or even when seen in a folder as just location. for
example, if i open a folder containing that file; it will close all my
running programs including the file folder. In porcess of putting this file
in "recyle bin"; I stupidly dragged it on my
desktop. And, now I cannot see anything on my desktop, nothing... not even
the start menu or title bar or icon on the desktop.

I can get to the Task Manager and can open the MS-DOS command program. I am
trying to delete the file from my desktop using command prompt. I am no
good with command as you can probably guess. I can still use my computer if
I log in as different user. This is something I tried that didnot work.

From current directory of C:\Documents and Settings\UserName\Desktop
I tried this command;
del *.*

It delelted something. But upon relogging as that username, I still see that
file just for just for a half second on the desktop. I just cannot seem to
be able to delete it.
Can anybody Help...
I need be logged in as that user..becasue I have so many things under that
name that is not shared...I'd really appreciate your help...
One thing I not sure is the location of my desktop..I mean there seemed to
be 2 different locations...I dont'know..
Thanks guys....
-manish

Deleting everything (*.*) is a little dangerous. If this was my
machine then I would be far more selective.

There are two storage locations for items on your desktop. To
delete a file from them, use both of these commands from a
Command Prompt:

del "C:\Documents and Settings\UserName\Desktop\SomeFile.jpg"
del "C:\Documents and Settings\All Users\Desktop\SomeFile.jpg"
 
T

Trax

|>From current directory of C:\Documents and Settings\UserName\Desktop
|>I tried this command;
|>del *.*

That wasn't good...

|>It delelted something. But upon relogging as that username, I still see that
|>file just for just for a half second on the desktop. I just cannot seem to
|>be able to delete it.
|>Can anybody Help...

In a command window (CMD) go to the folder that has the file you can't
delete - C:\Documents and Settings\UserName\Desktop
and type in:
DIR /X
you should see the file name in 8.3 format (myjpgh~1.jpg) before the
name of the file, type in:
DEL [8.3 filename] <enter>
that should remove it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top