PC Review


Reply
Thread Tools Rate Thread

Copy Shortcut

 
 
Martin
Guest
Posts: n/a
 
      25th Feb 2010
Hello,

I have the following code which works fine to copy files:

Dim SourceFile, DestinationFile, Username

SourceFile = "\\[MyServer]\[MyFolder]\[MyFileName].[extension]"
DestinationFile = "c:\Temp\[MyFileName].[extension]"

FileCopy SourceFile, DestinationFile

However I want to copy a Windows shortcut file and this doesnt have an
extension so when I run this it states it can't find the file however the
shortcut is there.

Can anyone help on this? I have tried to find a extension for shortcuts but
there doesnt seem to be one?

Many thanks in advance

Martin
 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      25th Feb 2010
On Thu, 25 Feb 2010 05:17:01 -0800, Martin
<(E-Mail Removed)> wrote:

Carefully check the Properties window, and you will find they have a
..lnk extension.

-Tom.
Microsoft Access MVP


>Hello,
>
>I have the following code which works fine to copy files:
>
>Dim SourceFile, DestinationFile, Username
>
>SourceFile = "\\[MyServer]\[MyFolder]\[MyFileName].[extension]"
>DestinationFile = "c:\Temp\[MyFileName].[extension]"
>
>FileCopy SourceFile, DestinationFile
>
>However I want to copy a Windows shortcut file and this doesnt have an
>extension so when I run this it states it can't find the file however the
>shortcut is there.
>
>Can anyone help on this? I have tried to find a extension for shortcuts but
>there doesnt seem to be one?
>
>Many thanks in advance
>
>Martin

 
Reply With Quote
 
Martin
Guest
Posts: n/a
 
      25th Feb 2010
Thank you

"Tom van Stiphout" wrote:

> On Thu, 25 Feb 2010 05:17:01 -0800, Martin
> <(E-Mail Removed)> wrote:
>
> Carefully check the Properties window, and you will find they have a
> ..lnk extension.
>
> -Tom.
> Microsoft Access MVP
>
>
> >Hello,
> >
> >I have the following code which works fine to copy files:
> >
> >Dim SourceFile, DestinationFile, Username
> >
> >SourceFile = "\\[MyServer]\[MyFolder]\[MyFileName].[extension]"
> >DestinationFile = "c:\Temp\[MyFileName].[extension]"
> >
> >FileCopy SourceFile, DestinationFile
> >
> >However I want to copy a Windows shortcut file and this doesnt have an
> >extension so when I run this it states it can't find the file however the
> >shortcut is there.
> >
> >Can anyone help on this? I have tried to find a extension for shortcuts but
> >there doesnt seem to be one?
> >
> >Many thanks in advance
> >
> >Martin

> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shortcut copy Gomek Windows XP Basics 4 23rd Oct 2007 09:23 PM
Shortcut copy Gomek Windows XP General 0 9th Oct 2007 10:59 PM
Need help to copy a shortcut Don J Windows XP New Users 9 11th Jul 2005 07:36 PM
Need help to copy a shortcut Don J Windows XP Basics 3 11th Jul 2005 06:59 PM
Copy shortcut =?Utf-8?B?ZnJlZG0=?= Windows XP Basics 1 8th Jul 2005 02:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:53 PM.