#28941 - 2002-09-12 10:50 PM
Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
I have a really simple script that I am trying to run. Everything runs fine except the copy command when I login. If I run kix32 kathy at a command line the shortcut copies to the desktop. What am I doing wrong?
;This is a test kixtart script created for Marshall users on Win98 ; Created 9/12/2001 - Kathy if ingroup("TX Mapcon Test") ? "You are a Member of Mapcon Group" Use O: /delete /PERSISTENT USE O: "\\Server\Apps\Apps"/PERSISTENT COPY "//Server\netlogon\shortcuts\mapcontest.lnk" "C:\windows\desktop" ? "You should have a shortcut on your desktop that looks like a toolbox" ELSE ?"Notify Kathy that your script is not working correctly" ENDIF
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28943 - 2002-09-13 02:49 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
Hey give me a break here. I am a Netware Certified person that has been thrust into the MS world against my will. Netware wins HANDS DOWN. haha!
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28944 - 2002-09-13 03:00 PM
Re: Copying Shortcut
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
have you see the stock prices lately
There are a number of utilities (functions) to create shortcuts in the UDF forum.
|
Top
|
|
|
|
#28946 - 2002-09-13 04:41 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
I was just joking. I was a COBOL programmer in my previous life. I will look on the forum for better examples of simple login scrips. All I need is a drive mapped and a shortcut put on the desktop. Thanks for all your help!
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28948 - 2002-09-13 08:40 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
Why is it?- so easy from a command prompt to copy a shortcut to the desktop and within Kixtart so hard? I get a drive mapped fine. (We have a program that all it needs is a drive mapping and a shorcut.) But copying a shortcut I cannot get to work.
Kixtart v4.11 Users have a Netware 5.1 and a Win2k login script - this is temporary Netware is being phased out. Users have win98. Anyone have a script that is copying a shortcut that is working I can look at? Thanks for help.
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28950 - 2002-09-13 09:04 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
JENS: The FAQs are where? If I type the copy command at a command line prompt, it works. Just not within the kixtart script. I am new to all of this.
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28951 - 2002-09-13 09:05 PM
Re: Copying Shortcut
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
they are links, just click on them.
|
Top
|
|
|
|
#28952 - 2002-09-13 09:56 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
Ok with the help of some of the links I think I have narrowed the problem down. I think Win98 is loading the desktop before the script has time to put the shortcut on the desktop.
The reason I think this is that if I login as usual, I get no icon on the desktop. If I go to a command line and type kix32 test.kix. The icon appears. I read on a link to change the registry value for winlogon to 1 this is suppose to tell the system to run all the scripts before presenting the win98 desktop but I tried this and it did not work. Anyone else have an idea? I am having so much fun with this - I love this forum. Kixtart v4.11 Servers Netware 5.1 and Win2K Users running Netware and Win2k logon script Users have Win98 workstations
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28954 - 2002-09-13 10:13 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
Another test, I ran the kix32 test.kix /debug and used F* to step each line in the script. It ran fine. Just one more thing to help backup my theory that all the things running when a user logs in is keeping the script from running correctly. Anyone else have this problem and know of a fix? Thanks - have a great weekend it is 94 degrees F here in Texas.
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28955 - 2002-09-13 10:18 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
Next question. How can I get a win98 PC to wait until the logon scripts finish before loading the desktop?
I tried the setting winlogon set to 1. Did not help.
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28957 - 2002-09-13 10:23 PM
Re: Copying Shortcut
|
GRF
Fresh Scripter
Registered: 2002-02-15
Posts: 45
Loc: Ohio
|
I use the following and have never had it not work.
code:
$Icon98 = "C:\windows\DESKTOP\ESI.PIF" if exist ($icon98) = 0 copy "q:\esi98.pif" "C:\windows\desktop\ESI.pif" endif
Hope it helps,
_________________________
GF
|
Top
|
|
|
|
#28958 - 2002-09-13 10:29 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
My ignorance is showing. Aren't .pif files old windows files.
What does your code do? I need explanations.
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28959 - 2002-09-13 11:11 PM
Re: Copying Shortcut
|
GRF
Fresh Scripter
Registered: 2002-02-15
Posts: 45
Loc: Ohio
|
It's just a pointer to another executable. You should be able to replace the .pif with whatever extension (in your case .lnk) you want.
Good luck,
_________________________
GF
|
Top
|
|
|
|
#28960 - 2002-09-13 11:11 PM
Re: Copying Shortcut
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
fdisk will fix most of this.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 692 anonymous users online.
|
|
|