Page 1 of 1 1
Topic Options
#119627 - 2004-05-14 10:22 PM Copy command runs only once?
cwhitmore Offline
Starting to like KiXtart

Registered: 2001-05-23
Posts: 102
Loc: Austin, Texas, USA
I was able to run the following command once, but it won't run again. I tried running it on another PC with the same login name, but it won't run on that PC either.

Shell "%COMSPEC% /c Copy \\server\publicdr\aidown~1\popupb~1\google~1.lnk C:\docume~1\@USERID\Desktop"


Any ideas?

Top
#119628 - 2004-05-14 11:20 PM Re: Copy command runs only once?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
If memory serves, you are copying a .URL file and not a .LNK. Why not use one of the WSHORTCUT() UDFs to create this on the client desktop.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#119629 - 2004-05-14 11:29 PM Re: Copy command runs only once?
cwhitmore Offline
Starting to like KiXtart

Registered: 2001-05-23
Posts: 102
Loc: Austin, Texas, USA
Actually it's a LNK file that is a shortcut to a setup.msi file. Will that UDF work with LNK files too?
Top
#119630 - 2004-05-14 11:39 PM Re: Copy command runs only once?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Not sure (have not tested it)..

However, why are you doing -
Code:

COPY \\server\publicdr\aidown~1\popupb~1\google~1.lnk C:\docume~1\@USERID\Desktop


When the following would work -
Code:

$desktop=READVALUE('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders','Desktop')
COPY "\\server\publicdr\aidown\popupblocker1\google blocker.lnk" $desktop



Note: You can surround your long file names (LFN) with double-quotes (").

The other thing is that you will do better by reading in the location where the user's desktop is located in the registry.

Lastly, you may get some help from here -
227091 - Command-Line Switches for the Microsoft Windows Installer

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.059 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org