Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | disk.folder.setAsSystem SEARCH    

  Functions
disk.dialogBox.folder
disk.dialogBox.open
disk.dialogBox.save
disk.dialogBox.save.getFilter
disk.drive.freeSpace
disk.drive.label
disk.drive.list
disk.drive.sysName
disk.drive.totalSpace
disk.drive.type
disk.file.compress
disk.file.copy
disk.file.date.get
disk.file.date.set
disk.file.delete
disk.file.exists
disk.file.expand
disk.file.list
disk.file.load
disk.file.load.array
disk.file.load.array.append
disk.file.load.decode
disk.file.merge
disk.file.move
disk.file.save
disk.file.save.array
disk.file.save.array.encode
disk.file.save.encode
disk.file.size
disk.folder.create
disk.folder.delete
disk.folder.exists
disk.folder.list
disk.folder.remove
disk.folder.setAsSystem
disk.folder.tree

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
disk.folder.setAsSystem

Language: MioScript
Product: MioFactory


Syntax

disk.folder.setAsSystem(path)


Parameters

STRINGpathPath to the folder.
The last / must not be specified.


Return value

No value is returned.


Description

Set a folder as a system folder.

A system folder can be customized.

To define a custom icon for the folder, add an icon and create a desktop.ini file in the folder.
The destkop.ini file should look as follow:

[.ShellClassInfo]
InfoTip=This is a folder with a custom icon
IconFile=myIcon.ico
IconIndex=0
ConfirmFileOp=0


The iconFile parameter can also be the full path to an icon stored outside of the folder.

You can also customize the web view of the folder with a .htt file.

Note: This function is the same than the PathMakeSystemFolder windows API function.




MioScript Sample Code

disk.folder.setAsSystem(path.desktop("MyFolder"))