Hi All,
I'm attempting to create a new folder structure for my company using kix and an INI file. Basically what I am after is the following
code:
Group
|_ Department
|_Team
|_Folder A
|_Folder B
I am structuring my INI file as follows
code:
[Department]
Group=Groupname
Team=Teamname
Any ideas how I can use the ReadProfileString to create this folder structure ? I'm having troubles reading in all the sections as it appears to add a CRLF at the end which kills my script to create the folder structre.
code:
$inifile="T:\groups.ini"
$x=ReadProfileString($inifile,"","")
$y=ReadProfileString($inifile,$x,"Group")
$z=ReadProfileString($inifile,$x,"Team")
Use x: "\\datl003n\Corporate"
MD "x:\"+$y+"\"+$x
MD "x:\"+$y+"\"+$x+"\"+$z
Use x: /delete
Any help would be appreciated.
Cheers,
Grasshopper75
[ 20. September 2003, 20:03: Message edited by: Grasshopper75 ]