Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Desktop shortcuts

Reply
 
Old 03-14-2009   #1 (permalink)
Tcs


 
 

Desktop shortcuts

This is probably the wrong place to ask this, but it's the best place
I know of... If there's one better, please tell me.

I have a command script ( .cmd ) where I'm trying to COPY a shortcut.
It seems that I can copy the shortcut, when I do so
manually/interactively. Copy & Paste works just fine. But my script?
Nope. And I can't test for its existence either. Like, if it's
already there, don't try to copy it.

Shouldn't I be able to copy it with a script? Do I have to use a
vbscript instead of a command script?

I know that I can CREATE a shortcut, but I don't want to. It's
looking like I may HAVE to, unless I can find the anwer to my copying
it.

Any help would be appreciated. Thanks in advance,

Tom

My System SpecsSystem Spec
Old 03-14-2009   #2 (permalink)
Tcs


 
 

Re: Desktop shortcuts

If I were to create a shortcut for cmd.exe, how would I modify its
properties? Such as text & background color, etc.

On Sat, 14 Mar 2009 21:43:53 -0400, Tcs <someone@xxxxxx> wrote:
Quote:

>This is probably the wrong place to ask this, but it's the best place
>I know of... If there's one better, please tell me.
>
>I have a command script ( .cmd ) where I'm trying to COPY a shortcut.
>It seems that I can copy the shortcut, when I do so
>manually/interactively. Copy & Paste works just fine. But my script?
>Nope. And I can't test for its existence either. Like, if it's
>already there, don't try to copy it.
>
>Shouldn't I be able to copy it with a script? Do I have to use a
>vbscript instead of a command script?
>
>I know that I can CREATE a shortcut, but I don't want to. It's
>looking like I may HAVE to, unless I can find the anwer to my copying
>it.
>
>Any help would be appreciated. Thanks in advance,
>
>Tom
My System SpecsSystem Spec
Old 03-14-2009   #3 (permalink)
James Whitlow


 
 

Re: Desktop shortcuts

"Tcs" <someone@xxxxxx> wrote in message
news:l1nor4117ddi0gn1hbb12veg7kr9upob8b@xxxxxx
Quote:

> This is probably the wrong place to ask this, but it's the best place
> I know of... If there's one better, please tell me.
>
> I have a command script ( .cmd ) where I'm trying to COPY a shortcut.
> It seems that I can copy the shortcut, when I do so
> manually/interactively. Copy & Paste works just fine. But my script?
> Nope. And I can't test for its existence either. Like, if it's
> already there, don't try to copy it.
>
> Shouldn't I be able to copy it with a script? Do I have to use a
> vbscript instead of a command script?
>
> I know that I can CREATE a shortcut, but I don't want to. It's
> looking like I may HAVE to, unless I can find the anwer to my copying
> it.
>
> Any help would be appreciated. Thanks in advance,
Are you adding the '.lnk' or '.url' hidden extension to your copy command?
The below command works just fine on my XP SP2 computer:

copy %SystemRoot%\system32\notepad.exe c:\


My System SpecsSystem Spec
Old 03-15-2009   #4 (permalink)
Paul Randall


 
 

Re: Desktop shortcuts


"Tcs" <someone@xxxxxx> wrote in message
news:l1nor4117ddi0gn1hbb12veg7kr9upob8b@xxxxxx
Quote:

> This is probably the wrong place to ask this, but it's the best place
> I know of... If there's one better, please tell me.
>
> I have a command script ( .cmd ) where I'm trying to COPY a shortcut.
> It seems that I can copy the shortcut, when I do so
> manually/interactively. Copy & Paste works just fine. But my script?
> Nope. And I can't test for its existence either. Like, if it's
> already there, don't try to copy it.
>
> Shouldn't I be able to copy it with a script? Do I have to use a
> vbscript instead of a command script?
>
> I know that I can CREATE a shortcut, but I don't want to. It's
> looking like I may HAVE to, unless I can find the anwer to my copying
> it.
>
> Any help would be appreciated. Thanks in advance,
>
> Tom
Can you make your cmd file copy it to C:\Documents and Settings\Default
User\Desktop or whatever user's desktop you are interested in?

-Paul Randall


My System SpecsSystem Spec
Old 03-15-2009   #5 (permalink)
Pegasus [MVP]


 
 

Re: Desktop shortcuts


"Tcs" <someone@xxxxxx> wrote in message
news:l1nor4117ddi0gn1hbb12veg7kr9upob8b@xxxxxx
Quote:

> This is probably the wrong place to ask this, but it's the best place
> I know of... If there's one better, please tell me.
>
> I have a command script ( .cmd ) where I'm trying to COPY a shortcut.
> It seems that I can copy the shortcut, when I do so
> manually/interactively. Copy & Paste works just fine. But my script?
> Nope. And I can't test for its existence either. Like, if it's
> already there, don't try to copy it.
>
> Shouldn't I be able to copy it with a script? Do I have to use a
> vbscript instead of a command script?
>
> I know that I can CREATE a shortcut, but I don't want to. It's
> looking like I may HAVE to, unless I can find the anwer to my copying
> it.
>
> Any help would be appreciated. Thanks in advance,
>
> Tom
You write many lines about what you're trying to do and that you cannot do
it but you never post the two most important things:
a) Your script, and
b) The error message(s) you see.

If you want a good response then you MUST post these items.


My System SpecsSystem Spec
Old 03-15-2009   #6 (permalink)
billious


 
 

Re: Desktop shortcuts


"Tcs" <someone@xxxxxx> wrote in message
news:e3qor49dbbghvl1gr6snku3dl6bsjbc35f@xxxxxx
Quote:

> If I were to create a shortcut for cmd.exe, how would I modify its
> properties? Such as text & background color, etc.
>
> On Sat, 14 Mar 2009 21:43:53 -0400, Tcs <someone@xxxxxx> wrote:
>
Quote:

>>This is probably the wrong place to ask this, but it's the best place
>>I know of... If there's one better, please tell me.
>>
>>I have a command script ( .cmd ) where I'm trying to COPY a shortcut.
>>It seems that I can copy the shortcut, when I do so
>>manually/interactively. Copy & Paste works just fine. But my script?
>>Nope. And I can't test for its existence either. Like, if it's
>>already there, don't try to copy it.
>>
>>Shouldn't I be able to copy it with a script? Do I have to use a
>>vbscript instead of a command script?
>>
>>I know that I can CREATE a shortcut, but I don't want to. It's
>>looking like I may HAVE to, unless I can find the anwer to my copying
>>it.
>>
>>Any help would be appreciated. Thanks in advance,
>>
>>Tom
copy "C:\documents and settings\username\existing link name.lnk"
"C:\documents and settings\username\new link name.lnk"

(all on one line)

works happily for me. Perhaps being a little more forthcoming with what you
are doing may elicit a better response.

Oh - better groups? Well, you could try microsoft.public.win2000.cmdprompt.
Naturally, it's not a well-frequented group, perhaps because "cmdprompt" is
a ridiculous name that only Microsoft uses. Perhaps it's because win2000
isn't "current" but they haven't established similar groups for later
products - presumably because all they want to support is point, click and
giggle.

Personally, I believe that it's the "microsoft" part that puts people off.

But better than that, and to save you being redirected from there, perhaps
you could just try going to alt.msdos.batch.nt (or alt.msdos.batch if the
....nt group isn't carried by your ns.)

As for setting up your shortcut, right-click, select properties, and use the
various tabs. "Colors" for instance lets you set up the screen colours. I
use yellow on black. I set the font to "Lucida Console" 18-point using the
"Font" tab, and on the "Options" tab, I select "Window" and untick Quickedit
and Insert mode. Your selections will depend on the way you wish to operate,
of course.




My System SpecsSystem Spec
Old 03-15-2009   #7 (permalink)
Al Dunbar


 
 

Re: Desktop shortcuts


"billious" <billious_1954@xxxxxx> wrote in message
news:49bd0bd4$0$5622$5a62ac22@xxxxxx-qv1-newsreader-01.iinet.net.au...
Quote:

>
> "Tcs" <someone@xxxxxx> wrote in message
> news:e3qor49dbbghvl1gr6snku3dl6bsjbc35f@xxxxxx
Quote:

>> If I were to create a shortcut for cmd.exe, how would I modify its
>> properties? Such as text & background color, etc.
>>
>> On Sat, 14 Mar 2009 21:43:53 -0400, Tcs <someone@xxxxxx> wrote:
>>
Quote:

>>>This is probably the wrong place to ask this, but it's the best place
>>>I know of... If there's one better, please tell me.
>>>
>>>I have a command script ( .cmd ) where I'm trying to COPY a shortcut.
>>>It seems that I can copy the shortcut, when I do so
>>>manually/interactively. Copy & Paste works just fine. But my script?
>>>Nope. And I can't test for its existence either. Like, if it's
>>>already there, don't try to copy it.
>>>
>>>Shouldn't I be able to copy it with a script? Do I have to use a
>>>vbscript instead of a command script?
>>>
>>>I know that I can CREATE a shortcut, but I don't want to. It's
>>>looking like I may HAVE to, unless I can find the anwer to my copying
>>>it.
>>>
>>>Any help would be appreciated. Thanks in advance,
>>>
>>>Tom
>
> copy "C:\documents and settings\username\existing link name.lnk"
> "C:\documents and settings\username\new link name.lnk"
>
> (all on one line)
>
> works happily for me. Perhaps being a little more forthcoming with what
> you are doing may elicit a better response.
>
> Oh - better groups? Well, you could try
> microsoft.public.win2000.cmdprompt.
Correction, it's not "microsoft.public.win2000.cmdprompt", but
"microsoft.public.win2000.cmdprompt.admin".
Quote:

> Naturally, it's not a well-frequented group, perhaps because "cmdprompt"
> is a ridiculous name that only Microsoft uses.
Also because we tend to answer batch questions here where they are off-topic
;-)
Quote:

> Perhaps it's because win2000 isn't "current" but they haven't
> established similar groups for later products - presumably because all
> they want to support is point, click and giggle.
I remember this being discussed at length some time ago. At that time a
whole bunch of newsgroup names were suggested, based partly on the o/s used
(ranging from pre-windows DOS versions, through 95, 98, 4DOS, XP, and etc).
IIRC there was no clear improvement that was likely to draw those needing
the info to the correct newsgroup so no changes were made.

/Al
Quote:

> Personally, I believe that it's the "microsoft" part that puts people off.
>
> But better than that, and to save you being redirected from there, perhaps
> you could just try going to alt.msdos.batch.nt (or alt.msdos.batch if the
> ...nt group isn't carried by your ns.)
>
> As for setting up your shortcut, right-click, select properties, and use
> the various tabs. "Colors" for instance lets you set up the screen
> colours. I use yellow on black. I set the font to "Lucida Console"
> 18-point using the "Font" tab, and on the "Options" tab, I select "Window"
> and untick Quickedit and Insert mode. Your selections will depend on the
> way you wish to operate, of course.
>
>
>
>

My System SpecsSystem Spec
Old 03-15-2009   #8 (permalink)
Paul Randall


 
 

Re: Desktop shortcuts


"Al Dunbar" <alandrub@xxxxxx> wrote in message
news:eVbxaFZpJHA.1172@xxxxxx
Quote:

>
> "billious" <billious_1954@xxxxxx> wrote in message
> news:49bd0bd4$0$5622$5a62ac22@xxxxxx-qv1-newsreader-01.iinet.net.au...
Quote:

>>
>> "Tcs" <someone@xxxxxx> wrote in message
>> news:e3qor49dbbghvl1gr6snku3dl6bsjbc35f@xxxxxx
Quote:

>>> If I were to create a shortcut for cmd.exe, how would I modify its
>>> properties? Such as text & background color, etc.
>>>
>>> On Sat, 14 Mar 2009 21:43:53 -0400, Tcs <someone@xxxxxx> wrote:
>>>
>>>>This is probably the wrong place to ask this, but it's the best place
>>>>I know of... If there's one better, please tell me.
>>>>
>>>>I have a command script ( .cmd ) where I'm trying to COPY a shortcut.
>>>>It seems that I can copy the shortcut, when I do so
>>>>manually/interactively. Copy & Paste works just fine. But my script?
>>>>Nope. And I can't test for its existence either. Like, if it's
>>>>already there, don't try to copy it.
>>>>
>>>>Shouldn't I be able to copy it with a script? Do I have to use a
>>>>vbscript instead of a command script?
>>>>
>>>>I know that I can CREATE a shortcut, but I don't want to. It's
>>>>looking like I may HAVE to, unless I can find the anwer to my copying
>>>>it.
>>>>
>>>>Any help would be appreciated. Thanks in advance,
>>>>
>>>>Tom
>>
>> copy "C:\documents and settings\username\existing link name.lnk"
>> "C:\documents and settings\username\new link name.lnk"
>>
>> (all on one line)
>>
>> works happily for me. Perhaps being a little more forthcoming with what
>> you are doing may elicit a better response.
>>
>> Oh - better groups? Well, you could try
>> microsoft.public.win2000.cmdprompt.
>
> Correction, it's not "microsoft.public.win2000.cmdprompt", but
> "microsoft.public.win2000.cmdprompt.admin".
>
Quote:

>> Naturally, it's not a well-frequented group, perhaps because "cmdprompt"
>> is a ridiculous name that only Microsoft uses.
>
> Also because we tend to answer batch questions here where they are
> off-topic ;-)
>
Quote:

>> Perhaps it's because win2000 isn't "current" but they haven't
>> established similar groups for later products - presumably because all
>> they want to support is point, click and giggle.
>
> I remember this being discussed at length some time ago. At that time a
> whole bunch of newsgroup names were suggested, based partly on the o/s
> used (ranging from pre-windows DOS versions, through 95, 98, 4DOS, XP, and
> etc). IIRC there was no clear improvement that was likely to draw those
> needing the info to the correct newsgroup so no changes were made.
>
> /Al
>
Quote:

>> Personally, I believe that it's the "microsoft" part that puts people
>> off.
>>
>> But better than that, and to save you being redirected from there,
>> perhaps you could just try going to alt.msdos.batch.nt (or
>> alt.msdos.batch if the ...nt group isn't carried by your ns.)
>>
>> As for setting up your shortcut, right-click, select properties, and use
>> the various tabs. "Colors" for instance lets you set up the screen
>> colours. I use yellow on black. I set the font to "Lucida Console"
>> 18-point using the "Font" tab, and on the "Options" tab, I select
>> "Window" and untick Quickedit and Insert mode. Your selections will
>> depend on the way you wish to operate, of course.
What about
microsoft.public.DosOrWin.AllVersions.BatchOrCmdPrompt

Maybe that would be too obvious or violate some newsgroup or company rule.

-Paul Randall


My System SpecsSystem Spec
Old 03-15-2009   #9 (permalink)
billious


 
 

Re: Desktop shortcuts


"Paul Randall" <paulr90@xxxxxx> wrote in message
news:uWwBo$ZpJHA.5880@xxxxxx
Quote:

>
> What about
> microsoft.public.DosOrWin.AllVersions.BatchOrCmdPrompt
>
> Maybe that would be too obvious or violate some newsgroup or company rule.
>
> -Paul Randall
Certainly.

Microsoft flunkies are taught to parrot "there is no DOS."


My System SpecsSystem Spec
Old 03-15-2009   #10 (permalink)
Tcs


 
 

Re: Desktop shortcuts

Add '.lnk', eh? Hmmm... I didn't know that there WAS an extension. I
mean, I guess I SHOULD have known, but I always set my view to SHOW
file extensions, and shortcuts never do. Perhaps this is all that I'm
missing.

Thanks!

On Sat, 14 Mar 2009 21:59:22 -0500, "James Whitlow"
<jwhitlow.60372693@xxxxxx> wrote:
Quote:

>"Tcs" <someone@xxxxxx> wrote in message
>news:l1nor4117ddi0gn1hbb12veg7kr9upob8b@xxxxxx
Quote:

>> This is probably the wrong place to ask this, but it's the best place
>> I know of... If there's one better, please tell me.
>>
>> I have a command script ( .cmd ) where I'm trying to COPY a shortcut.
>> It seems that I can copy the shortcut, when I do so
>> manually/interactively. Copy & Paste works just fine. But my script?
>> Nope. And I can't test for its existence either. Like, if it's
>> already there, don't try to copy it.
>>
>> Shouldn't I be able to copy it with a script? Do I have to use a
>> vbscript instead of a command script?
>>
>> I know that I can CREATE a shortcut, but I don't want to. It's
>> looking like I may HAVE to, unless I can find the anwer to my copying
>> it.
>>
>> Any help would be appreciated. Thanks in advance,
>
> Are you adding the '.lnk' or '.url' hidden extension to your copy command?
>The below command works just fine on my XP SP2 computer:
>
>copy %SystemRoot%\system32\notepad.exe c:\
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Desktop Shortcuts Vista General
Desktop shortcuts Vista performance & maintenance
Desktop Shortcuts Vista performance & maintenance
Desktop Shortcuts Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46