Solved

Login script

Posted on 2006-07-03
1
188 Views
Last Modified: 2010-04-17
I would like to send add the following to a bat script but it doesn't work

del C:\Documents and Settings\%username%\desktop\epf.lnk
0
Comment
Question by:cogit
1 Comment
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
Comment Utility
For one thing you've got to have quotes around the path if it's got spaces in it.  It also might be easier to use the %userprofile% variable instead of C:\Documents and Settings\%username%.  I'd write the command like this instead:

if exist "%userprofile%\desktop\epf.lnk" del "%userprofile%\desktop\epf.lnk"
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Magic Software info 18 100
VB6 Compile Compatibility Issue 4 23
Installed softare without GUID 6 53
Not needed 13 53
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now