local targetfolder = arg(1)
file.copy("c:\store\desktop.ini",targetfolder)
local targetini = targetfolder ++ "\desktop.ini"
if(inputdialog("iconfilepath=Icon file path,iconindex=Icon index number,
infotip=Infotip text,confirmfileop=Confirm file operations 0 or 1,
nosharing=No sharing 0 or 1","Custom folder settings") and not
pproflag(0))do ;; that was one long line of course
ini.set(targetini, ".ShellClassInfo", "IconFile", iconfilepath)
ini.set(targetini, ".ShellClassInfo", "IconIndex", iconindex)
ini.set(targetini, ".ShellClassInfo", "Infotip", infotip)
ini.set(targetini, ".ShellClassInfo", "ConfirmFileOp", confirmfileop)
ini.set(targetini, ".ShellClassInfo", "NoSharing", nosharing)
Else
Quit
endif
do("attrib", "+s " ++ targetfolder)
> ;;-----------------------------------
>
> Note: if you cancel the input dialog at runtime, you will
> still get a customised folder, using the default values which
> are already in the folder's copy of c:\store\desktop.ini,
> which should already refer to your preferred icon for folders.
I've modified the script so that if you hit cancel (with the latest beta
4.2.09 or later) clicking cancel will cancel the script entirely. Probably
need to test the syntax, just in case I goofed the pproflag(0) test :)
David Troesch | Atlanta, GA | ICQ# 2333123
So you think file sharing kills innovation? http://tinyurl.com/ywqq2
Funstuff: Loafing: It is better to have loafed and lost, than never to have
loafed at all.
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/