Page 1 of 1 1
Topic Options
#133403 - 2005-02-07 10:10 AM Is It possible
futte Offline
Fresh Scripter

Registered: 2002-07-02
Posts: 49
Loc: Denmark
Hi

I would like to know if it's possible to make a folder in "start\programs" called ex. HelpDesk, where i can put some helpfull things to the users ??

Top
#133404 - 2005-02-07 10:38 AM Re: Is It possible
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Sure.
Code:
$sHelpDesk=ExpandEnvironmentVars(
ReadValue(
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders",
"Programs"
)
)
+"\Help Desk"

If Not Exist($sHelpDesk)
MD $sHelpDesk
If @ERROR
"ERROR: Could not create missing Help Desk directory." ?
" Path: " $sHelpDesk ?
"Reason: [" @ERROR "] " @SERROR ?
Exit @ERROR
EndIf
EndIf

Copy "C:\TEMP\Example.txt" $sHelpDesk


Top
#133405 - 2005-02-07 11:20 AM Re: Is It possible
futte Offline
Fresh Scripter

Registered: 2002-07-02
Posts: 49
Loc: Denmark
Thanks for the quick answer

Can you tell me if it's possible to change the icon on the "program" you put in the HelpDesk folder ??
And one last thing, is it possible to give the "program" another name than the filename ?

Thanxxxx

Top
#133406 - 2005-02-07 01:47 PM Re: Is It possible
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Quote:

Can you tell me if it's possible to change the icon on the "program" you put in the HelpDesk folder ??
And one last thing, is it possible to give the "program" another name than the filename ?





Well, as you are copying the file you can of course change the name that you are copying it too.

Changing the icon is trickier.

Probably your best solution is to create a shortcut in the Help Desk folder that targets your files. This avoids cluttering up the users profile as well. You can specify the icon amongst other things.

Have a look at the shortcut UDFs in the UDF forum - here is a link to get you started:
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=83318&page=&view=&sb=5&o=&vc=1

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 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.061 seconds in which 0.031 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