Archive: finding root directory


finding root directory
Hi sorry to be dull... but ;)

I know I can find C:\windows or c:\winnt using $WINDIR

but I need to put a file in the root directory (in my case c:\my.cnf (mysql configuration file))

so how can I find out the root drive letter? I assume I can parse the $WINDIR somehow but have not a clue where to start - any pointers appreciated.


StrCpy $1 $WINDIR 2

The third parm is how much chars to copy... When you specify 2 it will only copy C:

KiCHiK


thanks again kichik !

very much appreciated.


No problem, happy to help :D