|
-
Jan 7th, 2008, 08:36 AM
#1
Thread Starter
Addicted Member
[2008] System 32 and Windows Folders
how can I find out the location of the folder "system32" and "windows"
and will the code work on XP and Vista?
thx
-
Jan 7th, 2008, 08:38 AM
#2
Fanatic Member
Re: [2008] System 32 and Windows Folders
-
Jan 7th, 2008, 08:45 AM
#3
Thread Starter
Addicted Member
Re: [2008] System 32 and Windows Folders
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
-
Jan 7th, 2008, 08:58 AM
#4
Fanatic Member
Re: [2008] System 32 and Windows Folders
You Can get The Systeme Folder by Using
The Environement.SystemeDirectory
-
Jan 7th, 2008, 09:12 AM
#5
Thread Starter
Addicted Member
Re: [2008] System 32 and Windows Folders
does this work on Vista also?
-
Jan 7th, 2008, 09:15 AM
#6
Fanatic Member
Re: [2008] System 32 and Windows Folders
I'am Using XP SP2 havent Tested on Vista
but Normally its Should work also on Vista
-
Jan 8th, 2008, 03:26 AM
#7
Re: [2008] System 32 and Windows Folders
It returns the system directory for the current environment. If the current environment is Vista...
-
Jan 8th, 2008, 04:36 AM
#8
Re: [2008] System 32 and Windows Folders
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|