how can I find out the location of the folder "system32" and "windows"
and will the code work on XP and Vista?
thx
Printable View
how can I find out the location of the folder "system32" and "windows"
and will the code work on XP and Vista?
thx
do You mean Searching ?
I want to copy some files to the system32 folder to protect them (so the user wont mess aroung with them)
I need the location
"C:\windows\system32"
but sometimes windows is installed on d or e
so i need code to find out the location
You Can get The Systeme Folder by Using
The Environement.SystemeDirectory
does this work on Vista also?
I'am Using XP SP2 havent Tested on Vista
but Normally its Should work also on Vista
It returns the system directory for the current environment. If the current environment is Vista...
It will work on Vista but some of the folder names may be a little different then they were in XP. Like "My Music" in XP is now "Music" in Vista etc. but the constant value for finding that folder is still the same.