Solved

Cannot delete .lnk file using dos

Posted on 2006-11-21
4
886 Views
Last Modified: 2007-12-19
I have to create a script to delete the outlook xp shortcut in the quick launch toolbar.
Here is what I am using in dos

del c:\documents and settings\5139\application data\microsoft\internet explorer\quick launch\launch microsoft outlook.lnk

I can get to that exact location in dos, but when I type in del .........\launch microsoft outlook.lnk  I get the below error.

Could not find c:\documents and settings\5139\application data\microsoft\internet explorer\quick launch\launch

as you can see, it stops at launch.  any ideas?
0
Comment
Question by:steveLaMi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 17987485
del "c:\documents and settings\5139\application data\microsoft\internet explorer\quick launch\launch microsoft outlook.lnk"

should do it
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 17987505
The problem is that there are spaces in the directory names, so it's recognized as a parameter, instead of a folder...
0
 

Author Comment

by:steveLaMi
ID: 17987728
Is there anyway to get around the fact there are spaces? Can I use underscores or ~  ?
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 17987885
You 'could' potentially, but enclosing it in quotes is the best solution.
The way 8.3 filenames transfer, the above 'could' read:

del c:\docume~1\5139\applic~1\microsoft\intern~1\quickl~1\launch~1.lnk

but launch~1.lnk could refer to any number of files - you could be deleting "Launch Outlook Express.lnk" for example....

It depends on how the 8.3 were built:

Launch Outlook Express.lnk  = Launch~1.lnk
Launch Microsoft Outlook.lnk = Launch~2.lnk
Launch Other Program.lnk = Launch~3.lnk

Here's some detail on how they're built: http://home.teleport.com/~brainy/lfn.htm
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question