PC Review


Reply
Thread Tools Rate Thread

Creating shortcut via script

 
 
John
Guest
Posts: n/a
 
      1st Oct 2008
Hi

Is there a way to use a batch file or script to do the following;

1. Create a folder X

2. Copy a file form another location to folder X.

3. Create a shortcut to copied file in folder X on the desktop?

If batch or script can not do this, is there another way?

Thanks

Regards




 
Reply With Quote
 
 
 
 
John
Guest
Posts: n/a
 
      1st Oct 2008
Hi

A couple of additions to the last questions.

How can I

a. Add a specific icon (world icon) form the
%SystemRoot%\system32\SHELL32.dll to the created shortcut?

b. Any way to scan all icons on the desktop and if any shortcut already has
the world icon to change it to something else form
%SystemRoot%\system32\SHELL32.dll ?

Many thanks. Sorry for all the questiosn but I am new to this.

Regards

"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> Is there a way to use a batch file or script to do the following;
>
> 1. Create a folder X
>
> 2. Copy a file form another location to folder X.
>
> 3. Create a shortcut to copied file in folder X on the desktop?
>
> If batch or script can not do this, is there another way?
>
> Thanks
>
> Regards
>
>
>
>



 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a
 
      1st Oct 2008
"John" <(E-Mail Removed)> wrote:

>Hi
>
>Is there a way to use a batch file or script to do the following;
>
>1. Create a folder X
>
>2. Copy a file form another location to folder X.


These two are easy of course. mkdir to create a folder, copy to copy a
file into it.

>3. Create a shortcut to copied file in folder X on the desktop?


That's hard. A Google search turns up this:
http://www.xxcopy.com/xxcopy38.htm. That page describes XXMKLINK which
they claim will create a shortcut from the command line. There's a
link at the bottom of the page to download the tool, which is free.
All I know about it is what's on that page, I've never used it.

--
Tim Slattery
MS MVP(Shell/User)
(E-Mail Removed)
http://members.cox.net/slatteryt
 
Reply With Quote
 
ju.c
Guest
Posts: n/a
 
      2nd Oct 2008
Xxcopy doesn't work with SP3.

Yet.

Is it fixed now?


"Tim Slattery" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> "John" <(E-Mail Removed)> wrote:
>
>>Hi
>>
>>Is there a way to use a batch file or script to do the following;
>>
>>1. Create a folder X
>>
>>2. Copy a file form another location to folder X.

>
> These two are easy of course. mkdir to create a folder, copy to copy a
> file into it.
>
>>3. Create a shortcut to copied file in folder X on the desktop?

>
> That's hard. A Google search turns up this:
> http://www.xxcopy.com/xxcopy38.htm. That page describes XXMKLINK which
> they claim will create a shortcut from the command line. There's a
> link at the bottom of the page to download the tool, which is free.
> All I know about it is what's on that page, I've never used it.
>
> --
> Tim Slattery
> MS MVP(Shell/User)
> (E-Mail Removed)
> http://members.cox.net/slatteryt

 
Reply With Quote
 
Plato
Guest
Posts: n/a
 
      2nd Oct 2008
ju.c wrote:
>
> Xxcopy doesn't work with SP3.
> Yet.
> Is it fixed now?


Ask the Author, Kan Yabubumoto.


--
http://www.bootdisk.com/

 
Reply With Quote
 
ju.c
Guest
Posts: n/a
 
      2nd Oct 2008
Please don't answer with non-answers. Totally useless.


"Plato" <|@|.|> wrote in message news:48e49717$0$12781$(E-Mail Removed)...
> ju.c wrote:
>>
>> Xxcopy doesn't work with SP3.
>> Yet.
>> Is it fixed now?

>
> Ask the Author, Kan Yabubumoto.
>
>
> --
> http://www.bootdisk.com/
>

 
Reply With Quote
 
ju.c
Guest
Posts: n/a
 
      2nd Oct 2008
Try this:

Shortcut 1.11 24 KB (Freeware)
http://www.optimumx.com/download/#Shortcut

"/
Allows you to create, modify or query Windows shell
links (shortcuts) from the command-line. You can
export the properties of an existing shortcut to a
text file in .INI format. Use 'Shortcut /?' to view
the syntax.
/"


ju.c


"John" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hi
>
> Is there a way to use a batch file or script to do the following;
>
> 1. Create a folder X
>
> 2. Copy a file form another location to folder X.
>
> 3. Create a shortcut to copied file in folder X on the desktop?
>
> If batch or script can not do this, is there another way?
>
> Thanks
>
> Regards
>
>
>
>

 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a
 
      2nd Oct 2008
"ju.c" <(E-Mail Removed)> wrote:

>Xxcopy doesn't work with SP3.


Interesting, but I'm not talking about xxcopy. This is a different
program, apparently from the same place, called xxmklink. It doesn't
copy files, it makes a link. I don't see any mention of SP3 on the
page.

--
Tim Slattery
MS MVP(Shell/User)
(E-Mail Removed)
http://members.cox.net/slatteryt
 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a
 
      2nd Oct 2008
"ju.c" <(E-Mail Removed)> wrote:

>Try this:
>
>Shortcut 1.11 24 KB (Freeware)
>http://www.optimumx.com/download/#Shortcut
>
>"/
>Allows you to create, modify or query Windows shell
>links (shortcuts) from the command-line. You can
>export the properties of an existing shortcut to a
>text file in .INI format. Use 'Shortcut /?' to view
>the syntax.


Sounds good!

--
Tim Slattery
MS MVP(Shell/User)
(E-Mail Removed)
http://members.cox.net/slatteryt
 
Reply With Quote
 
ju.c
Guest
Posts: n/a
 
      3rd Oct 2008
Oh, I thought xxmklink was an xxcopy command. Doh!


"Tim Slattery" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> "ju.c" <(E-Mail Removed)> wrote:
>
>>Xxcopy doesn't work with SP3.

>
> Interesting, but I'm not talking about xxcopy. This is a different
> program, apparently from the same place, called xxmklink. It doesn't
> copy files, it makes a link. I don't see any mention of SP3 on the
> page.
>
> --
> Tim Slattery
> MS MVP(Shell/User)
> (E-Mail Removed)
> http://members.cox.net/slatteryt

 
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
Re: creating shortcut keys for a desktop shortcut ju.c Windows XP Customization 0 9th Jan 2009 02:53 PM
Re: creating shortcut keys for a desktop shortcut Dacicus Windows XP Customization 1 9th Jan 2009 04:35 AM
Creating shortcut via script John Windows XP New Users 8 3rd Oct 2008 02:28 PM
How to fix the whacky <script></script> bug in C# when dynamically creating javascript. andrew@transitionkiteboarding.com Microsoft ASP .NET 0 2nd Aug 2005 03:01 PM
FAQ - creating desktop shortcut from batch file - without shortcut.exe Tom Lavedas Windows XP General 0 9th Sep 2003 06:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:39 PM.