Solved

Cannot delete .lnk file using dos

Posted on 2006-11-21
4
884 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Remote Exchange powershell-ing 25 119
netsh interface ip show interface in Windows XP 4 143
difference between registeries 3 96
move Windows 10 apps to diff disk 39 154
Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

756 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