Command Prompt

G

Guest

Hi Everyone!

I have been told the easiest way to delete a file that I created is to use
the Command Prompt. I have tried other programs to delete the file with no
success. The file just comes back on reboot - the same happens if I right
click the file and select delete. The other programs I have tried are
HijackThis and Total Commander. The file is associted with WMP 10. The
location of the file:

C:\Documents and Settings\Owner\Desktop

The name of the file is 1

When I try the following command in Command Prompt:

C:\Documents and Settings\Owner\Desktop>DEL 1

I get the following message:

"Not recognized as an internal or external command"

What am I doing wrong?

Thanks in advance!
Mike
 
G

Guest

just navigate to the location you have using My computer/explorer.
then select file or shortcut and delete.
 
P

Pegasus \(MVP\)

z1chess said:
Hi Everyone!

I have been told the easiest way to delete a file that I created is to use
the Command Prompt. I have tried other programs to delete the file with no
success. The file just comes back on reboot - the same happens if I right
click the file and select delete. The other programs I have tried are
HijackThis and Total Commander. The file is associted with WMP 10. The
location of the file:

C:\Documents and Settings\Owner\Desktop

The name of the file is 1

When I try the following command in Command Prompt:

C:\Documents and Settings\Owner\Desktop>DEL 1

I get the following message:

"Not recognized as an internal or external command"

What am I doing wrong?

Thanks in advance!
Mike

There are a few strange things here. For starters, deleting a
file from the Command Prompt is not the easiest way, as has
been suggested to you. It's really a method used by
administrators. Next, the "del" command is an "internal"
command, which means that it always works if spelt
correctly. To avoid any spelling issues, try this instead:

- Using your mouse, highlight the following line, then
press Ctrl+C on your keyboard.
cmd /c del "C:\Documents and Settings\Owner\Desktop\1.*" & pause
- Click Start / Run
- press Ctrl+V on your keyboard, then klick {OK}.

This will delete all files with a name of "1" and any extension.
You should see no error message.

Lastly, if the file keeps coming back then you probably have
some spyware / malware on your PC. Install a suitable product
such as AdAware to remove it.
 
G

Guest

Hi

Try downloading Ad aware SE Personal from lavasoft.com, you can also
download this from download.com, to remove spyware from the computer and also
doing the scan in safe mode.

Hope this help

All the best
 
B

billious

z1chess said:
Hi Everyone!

I have been told the easiest way to delete a file that I created is to use
the Command Prompt. I have tried other programs to delete the file with
no
success. The file just comes back on reboot - the same happens if I right
click the file and select delete. The other programs I have tried are
HijackThis and Total Commander. The file is associted with WMP 10. The
location of the file:

C:\Documents and Settings\Owner\Desktop

The name of the file is 1

When I try the following command in Command Prompt:

C:\Documents and Settings\Owner\Desktop>DEL 1

I get the following message:

"Not recognized as an internal or external command"

What am I doing wrong?

Thanks in advance!
Mike

If you are at the command prompt and type the command

C:\Documents and Settings\Owner\Desktop>DEL 1

then you are attempting to run a command
"C:\Documents"

with parameters "and" and "Settings\Owner\Desktop" and "1", and send the
(non-error) messages to a file called "DEL"

What is required is to delete the file called "C:\Documents and
Settings\Owner\Desktop\1"

Which you can do with the command

DEL "C:\Documents and Settings\Owner\Desktop\1"

Noting
1) character-case is unimportant
2) the quotes (") are REQUIRED since the pathname to the file contains
spaces
3) The element "Owner" probably needs to be replaced by the (presumably
current) username

The easy and universal command would thus be

DEL "C:\Documents and Settings\%USERNAME%\Desktop\1"

USERNAME is an environment variable established by the operating system
containing the obvious. The enclosing "%" instructs the system to use the
contents of the environment variable "USERNAME" rather than the
literal-string "USERNAME"

This should allow you to delete the offending file BUT
1) the file may read-only. If it is, you'd need to issue the command

ATTRIB -r "C:\Documents and Settings\%USERNAME%\Desktop\1"

before the DEL command (ATTRIB changes the ATTRIBUTES of a file. "-r" means
"remove read-only)

2) The file may be open, so DEL will respond "file in use". You'd need to
close the application that has opened the file before trying DEL

3) It won't necessarily solve the "file reappears on reboot" problem. It's
not clear whether you have successfully deleted the file at any time and it
reappears on boot. It's also possible that if it's associated with WMP10
then WMP10 holds it open and that's why your utilities can't delete it.
Close WMP and try again - and since it's on your desktop, you should be able
to right-click it and delete it from there.

HTH

....Bill
 

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