Correct Syntax for XP Command line

R

Rich Barry

I was trying to delete a shortcut from the desktop using the XP command
line. Had no luck
Kept saying that it couldnt find the file or folder. What is the correct
syntax for Del. ?
Do you have to type the complete path. ie. C:\documents and
settings\name\desktop\shortcut name. ? I was playing with different
configurations of that which I obtained from the XP Command Line List
but nothing worked.
Linux I had to learn the command line but not XP. Basically lazy.
 
T

Tim Slattery

Rich Barry said:
I was trying to delete a shortcut from the desktop using the XP command
line. Had no luck
Kept saying that it couldnt find the file or folder. What is the correct
syntax for Del. ?
Do you have to type the complete path. ie. C:\documents and
settings\name\desktop\shortcut name. ? I was playing with different
configurations of that which I obtained from the XP Command Line List
but nothing worked.
Linux I had to learn the command line but not XP. Basically lazy.

You either have to navigate to the folder where the shortcut lives or
give the full path. If you give the full path, or if the shortcut's
name includes spaces, you'll want to surround the whole thing with
double-quotes.

delete "c:\windows\profiles\blow_j\desktop\some thing.lnk"
 
H

HeyBub

Rich said:
I was trying to delete a shortcut from the desktop using the XP
command line. Had no luck
Kept saying that it couldnt find the file or folder. What is the
correct syntax for Del. ?
Do you have to type the complete path. ie. C:\documents and
settings\name\desktop\shortcut name. ? I was playing with different
configurations of that which I obtained from the XP Command Line List
but nothing worked.
Linux I had to learn the command line but not XP. Basically lazy.

Why not right-click on the shortcut and select "Delete?"
 
E

Elmo

Rich said:
I was trying to delete a shortcut from the desktop using the XP command
line. Had no luck
Kept saying that it couldnt find the file or folder. What is the correct
syntax for Del. ?
Do you have to type the complete path. ie. C:\documents and
settings\name\desktop\shortcut name. ? I was playing with different
configurations of that which I obtained from the XP Command Line List
but nothing worked.
Linux I had to learn the command line but not XP. Basically lazy.
Open the prompt and type
cd %userprofile%\desktop
dir
if the link you are trying to delete is not there then it is a part of the
all users desktop.
cd %allusersprofile%\desktop
dir
if you see the target link there you can delete it but you must be
administrator in order to delete.
you will need to either:
encompass the entire link in quotes
or the first 6 characters with ~1
example:
my own folder.lnk will be
myownf~1.lnk

Download my free home PC basic at
http://www.conejonetwork.com
 
J

jt3

Why did Tim Slattery's posted reply to your OP get pulled, do you
know--since apparently you replied to it, and that got pulled?

Joe
 

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