Jump to content

copy url onto user's desktop


Recommended Posts

Guest Calvin C.
Posted

I simply try to create a logon script to copy an url to each user's desktop.

The script is written as below,

copy "\\sever\share\Requests Form" "C:\documents and

settings\%username%\desktop\"

 

"Requests Form" is just a shortcut copied from my favorites.

 

When I run the script, it dosen't copy that url no matter what. However, it

works if I try to copy a file, for example test.txt by using the same script

like,

copy \\sever\share\test.txt "C:\documents and settings\%username%\desktop\"

 

What have I missed? Thanks

 

Calvin

  • Replies 5
  • Created
  • Last Reply

Popular Days

Posted

RE: copy url onto user's desktop

 

try calling it "requests_form"

 

"Calvin C." wrote:

> I simply try to create a logon script to copy an url to each user's desktop.

> The script is written as below,

> copy "\\sever\share\Requests Form" "C:\documents and

> settings\%username%\desktop\"

>

> "Requests Form" is just a shortcut copied from my favorites.

>

> When I run the script, it dosen't copy that url no matter what. However, it

> works if I try to copy a file, for example test.txt by using the same script

> like,

> copy \\sever\share\test.txt "C:\documents and settings\%username%\desktop\"

>

> What have I missed? Thanks

>

> Calvin

>

>

>

Guest Calvin C.
Posted

Re: copy url onto user's desktop

 

I have tried to make is one word or add the "" marks, but it still not

copying it.

 

"Hamdan" <Hamdan@discussions.microsoft.com> wrote in message

news:D2EE061A-582A-43C5-8BB4-921AB5E321C1@microsoft.com...

> try calling it "requests_form"

>

> "Calvin C." wrote:

>

>> I simply try to create a logon script to copy an url to each user's

>> desktop.

>> The script is written as below,

>> copy "\\sever\share\Requests Form" "C:\documents and

>> settings\%username%\desktop\"

>>

>> "Requests Form" is just a shortcut copied from my favorites.

>>

>> When I run the script, it dosen't copy that url no matter what. However,

>> it

>> works if I try to copy a file, for example test.txt by using the same

>> script

>> like,

>> copy \\sever\share\test.txt "C:\documents and

>> settings\%username%\desktop\"

>>

>> What have I missed? Thanks

>>

>> Calvin

>>

>>

>>

Posted

RE: copy url onto user's desktop

 

Better specify the extension. If it is a shortcut, then its Request Form.lnk

.. Or it can be a direct url whth the extension of Request Form.url

 

copy "\\sever\share\Requests Form.url" "C:\documents and

settings\%username%\desktop\"

 

or

 

copy "\\sever\share\Requests Form.lnk" "C:\documents and

settings\%username%\desktop\"

 

"Hamdan" wrote:

> try calling it "requests_form"

>

> "Calvin C." wrote:

>

> > I simply try to create a logon script to copy an url to each user's desktop.

> > The script is written as below,

> > copy "\\sever\share\Requests Form" "C:\documents and

> > settings\%username%\desktop\"

> >

> > "Requests Form" is just a shortcut copied from my favorites.

> >

> > When I run the script, it dosen't copy that url no matter what. However, it

> > works if I try to copy a file, for example test.txt by using the same script

> > like,

> > copy \\sever\share\test.txt "C:\documents and settings\%username%\desktop\"

> >

> > What have I missed? Thanks

> >

> > Calvin

> >

> >

> >

Guest Calvin C.
Posted

Re: copy url onto user's desktop

 

Thanks that works. The thing I did wrong is I should have not changed the

shortcut file name, Request_form to Request_form.url in the shared

directory.

 

"MrHusy" <MrHusy@discussions.microsoft.com> wrote in message

news:B9FF57C3-C74F-4AD8-8D30-61CCBEAA3721@microsoft.com...

> Better specify the extension. If it is a shortcut, then its Request

> Form.lnk

> . Or it can be a direct url whth the extension of Request Form.url

>

> copy "\\sever\share\Requests Form.url" "C:\documents and

> settings\%username%\desktop\"

>

> or

>

> copy "\\sever\share\Requests Form.lnk" "C:\documents and

> settings\%username%\desktop\"

>

> "Hamdan" wrote:

>

>> try calling it "requests_form"

>>

>> "Calvin C." wrote:

>>

>> > I simply try to create a logon script to copy an url to each user's

>> > desktop.

>> > The script is written as below,

>> > copy "\\sever\share\Requests Form" "C:\documents and

>> > settings\%username%\desktop\"

>> >

>> > "Requests Form" is just a shortcut copied from my favorites.

>> >

>> > When I run the script, it dosen't copy that url no matter what.

>> > However, it

>> > works if I try to copy a file, for example test.txt by using the same

>> > script

>> > like,

>> > copy \\sever\share\test.txt "C:\documents and

>> > settings\%username%\desktop\"

>> >

>> > What have I missed? Thanks

>> >

>> > Calvin

>> >

>> >

>> >

Posted

Re: copy url onto user's desktop

 

You are welcome. Please do not forget to rate helpful posts

 

Regards

 

"Calvin C." wrote:

> Thanks that works. The thing I did wrong is I should have not changed the

> shortcut file name, Request_form to Request_form.url in the shared

> directory.

>

> "MrHusy" <MrHusy@discussions.microsoft.com> wrote in message

> news:B9FF57C3-C74F-4AD8-8D30-61CCBEAA3721@microsoft.com...

> > Better specify the extension. If it is a shortcut, then its Request

> > Form.lnk

> > . Or it can be a direct url whth the extension of Request Form.url

> >

> > copy "\\sever\share\Requests Form.url" "C:\documents and

> > settings\%username%\desktop\"

> >

> > or

> >

> > copy "\\sever\share\Requests Form.lnk" "C:\documents and

> > settings\%username%\desktop\"

> >

> > "Hamdan" wrote:

> >

> >> try calling it "requests_form"

> >>

> >> "Calvin C." wrote:

> >>

> >> > I simply try to create a logon script to copy an url to each user's

> >> > desktop.

> >> > The script is written as below,

> >> > copy "\\sever\share\Requests Form" "C:\documents and

> >> > settings\%username%\desktop\"

> >> >

> >> > "Requests Form" is just a shortcut copied from my favorites.

> >> >

> >> > When I run the script, it dosen't copy that url no matter what.

> >> > However, it

> >> > works if I try to copy a file, for example test.txt by using the same

> >> > script

> >> > like,

> >> > copy \\sever\share\test.txt "C:\documents and

> >> > settings\%username%\desktop\"

> >> >

> >> > What have I missed? Thanks

> >> >

> >> > Calvin

> >> >

> >> >

> >> >

>

>

>


×
×
  • Create New...