Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying files (controls) to system32 directory using VB.

Status
Not open for further replies.

jimtmelb1

Technical User
Sep 7, 2003
72
AU
Hi,

I have a small VB app which copies files from a CD to a directory structure on a local machine. The app is also run from the CD itself.

I have some controls I need to copy to the local machine. One has to go to be copied into the System32 directory the other into the "c:\program files\Microsoft Office\Office".

On different versions of the Windows operating system the system32 directory may be in different folder. Is there any way you can copy these files in VB where it detects where to copy these controls.

Also microsoft office can be installed to a custom directory. How can you detect where to copy this file?

If anyone can show me some code I would much appreciate it.

Thanks
Jim
 
see thread222-581363

Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top