Page 1 of 1 1
Topic Options
#26598 - 2002-08-06 10:06 PM AddProgramGroup Command problem
BitCrusher Offline
Lurker

Registered: 2002-08-06
Posts: 2
I am having a problem with the AddProgramGroup command on a Windows 2000 Pro machine. Whenever I add a program group, KIX32 and WKIX32 does not seem to release the group. If I try to delete it, I am getting a sharing violation. However, if I do this on Windows NT 4.0 Workstation, I am not having the problem. In order to release the group, I have to either kill explorer and bring it back up, or re-boot. Can anyone tell me why? I am running KIX32 v4.10. Thanks...

BitCrusher

Top
#26599 - 2002-08-06 10:12 PM Re: AddProgramGroup Command problem
Dean B. Offline
Fresh Scripter

Registered: 2002-02-04
Posts: 46
Loc: Allegan, MI USA
BitCrusher -

Please tell us the version of Kix and include your code. It may be a permissions issue.
_________________________
Dean

Top
#26600 - 2002-08-06 10:15 PM Re: AddProgramGroup Command problem
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
If you create a common group, then the user must have administrative permissions (see KiXtart manual)
_________________________
There are two types of vessels, submarines and targets.

Top
#26601 - 2002-08-06 10:17 PM Re: AddProgramGroup Command problem
BitCrusher Offline
Lurker

Registered: 2002-08-06
Posts: 2
I am an administrator on the machines, so I don't think that's the problem. I'm even building it as personal, not common. Anyway, here is the code. Please let me know if you see anything. Thanks...
------------------------------------
$Pgmexec=CHR(34) + "C:\Program Files\Distinct\vt.exe" + CHR(34) + " -A-P MTS_LA_MP"
If AddProgramGroup("MTS Execution",0) = 0
If AddProgramItem($Pgmexec,"MTS-Prod","",0,"C:\Program Files\Distinct",0,0) = 0
Copy "%UserProfile%\Start Menu\Programs\Mts Execution\MTS-Prod.lnk" "%UserProfile%\Desktop"
If DelProgramItem("MTS-Prod") = 0
If DelProgramGroup("MTS Execution",0) = 0
?"MTS Icons completed..."
Endif
Endif
EndIf
EndIf

EXIT 0
----------------------------
BitCrusher

Top
#26602 - 2002-08-07 03:01 AM Re: AddProgramGroup Command problem
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
It seems to me that all you are interested in is creating a shortcut.

Instead of creating (and deleting) a programgroup, i suggest you have a look here: MakeScut
This is a free tool from ScriptLogic.com to create shortcuts

Also you might searc for 'shortcut' on the KiXtart BBS

-Erik

[ 07. August 2002, 03:03: Message edited by: kholm ]

Top
#26603 - 2002-08-07 03:44 AM Re: AddProgramGroup Command problem
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Additional info:

You can just create a folder in the appropriate directory and copy a shortcut into that folder. This would be the same procedure as using ADDPROGRAMGOUP, ADDPROGRAMITEM. However, you will need to retrieve the actual user profile location from the registry, you're looking for 'Shell Folders'. There are a couple of examples for this already posted on this BBS, see
Desktop ENV variable? (how can I copy a file to all desktops f.e. by registry value)
Adding/Updating Custom Start Menus Folders
and more when searching the BBs for 'Shell Folders'.
_________________________
There are two types of vessels, submarines and targets.

Top
#26604 - 2002-08-07 07:25 AM Re: AddProgramGroup Command problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
also you might want to check from udf forum for wshshortcut or softlink which basically do all the work for you.

here the links:
softlink (fully kix) - http://81.17.37.55/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=12&t=000160#000000
wshshortcut - http://81.17.37.55/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=12;t=000034

[ 07. August 2002, 07:32: Message edited by: Lonkero ]
_________________________
!

download KiXnet

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
0 registered and 847 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.084 seconds in which 0.059 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