How do you copy a shortcut to a file with a batch file?

P

Pegasus \(MVP\)

Don J said:
How do you copy a shortcut for a file instead of the file itself with a
batch file? The shortcut should be preferably created automatically by the
copy process.

Don J

----------------------------------------------------------

If I understand you correctly then you wish to ***create***
(rather than ***copy***) a shortcut, using batch file commands.
I found these links in my old notes - one of them might help.

http://info-x.co.uk/files.asp?id=4
http://www.ss64.com/nt/shortcut.html
http://www.optimumx.com/download/#Shortcut
 
T

Terry

On 4/12/2007 9:37 PM On a whim, Don J pounded out on the keyboard
How do you copy a shortcut for a file instead of the file itself with a
batch file? The shortcut should be preferably created automatically by the
copy process.

Don J

Hi Don,

To copy a shortcut named "test" on your Desktop, from a command prompt
while in the folder Desktop, you would use:
copy test.lnk c:\links

Open a command prompt (Start, Run, cmd) and navigate to your Desktop
folder and type dir and press Enter. You'll see the shortcuts all with
the lnk extension.

Links are not created by copying. You create it within Windows.

--
Terry

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
P

Pegasus \(MVP\)

Don J said:
How do you copy a shortcut for a file instead of the file itself with a
batch file? The shortcut should be preferably created automatically by the
copy process.

Don J

----------------------------------------------------------

I note that your time or time zone is set incorrectly. You're
posting in the future.
 
P

Pegasus \(MVP\)

You can see that your time/time zone is wrong by looking
at the various posts in this thread. Your posts have a consistent
time stamp of about three hours after the various replies.

I suspect that your time zone is set wrongly.
 
D

Don J

How do you copy a shortcut for a file instead of the file itself with a
batch file? The shortcut should be preferably created automatically by the
copy process.

Don J

----------------------------------------------------------
 
D

Don J

Thank you for the very useful help. My shortcut problem is solved.

Now for the issue of time. I have checked my date and time against
www.timeanddate.com/worldclock/city.html?n=43 . The Web-Site gives the time
and date for Boston Massachusetts. My System displayed time and date
matches that given on the Web Site within about a minute. You have not been
the first to tell me I've got a problem. Every time I check it out and
don't see what the problem is. Clearly with so many people telling me I
have a problem, I must indeed have one. Can you help me? Am I looking at
things wrong?

Thanks again.

Don J

-----------------------------------------------------------------------
 
P

Pegasus \(MVP\)

Don J said:
Your argument looks pretty convicing based on yours and terry's time stamps.
However I've looked at some other newsgroups that I've posted to and they
show no such time skew. Granted that these posts were from an earlier time.

My post of last night, according to my watch at the time I posted it (about
10:00pm), is correct to about 15 minutes. I know that my watch is correct
as I eat with a group at 5:00pm. Yet your post is about 3 hours before
mine. Don't these facts argue that I am correct and both your and Terry's
time are off? Whats wrong with my argument?

Very simple: Your post's time stamp is not only different from
Terry's and mine but from everyone else's too! Your display time
is probably correct but your time zone isn't.
 
D

Don J

Looks like you are right. I've corrected it. I've learned something new.
Thanks!

Don J

---------------------------------------------------------------------------------
 
J

John John

The way I see it here is that using clairvoyance and his amazing skills
to predict the future Pegasus is posting answers to your questions 2
hours before you even post and ask the questions!

John
 
D

Don J

Your argument looks pretty convicing based on yours and terry's time stamps.
However I've looked at some other newsgroups that I've posted to and they
show no such time skew. Granted that these posts were from an earlier time.

My post of last night, according to my watch at the time I posted it (about
10:00pm), is correct to about 15 minutes. I know that my watch is correct
as I eat with a group at 5:00pm. Yet your post is about 3 hours before
mine. Don't these facts argue that I am correct and both your and Terry's
time are off? Whats wrong with my argument?

Don J
 

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