Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2005
    Posts
    5

    How can you copy a file to the system32 ??

    Hi,

    How can you determine where is windows installed?
    I need to copy a file to the system32 folder in windows, the install needs to be able to switch regardless of windows installation, eg:

    win98 = no system32 folder, install normally in c:
    winnt4 = c:\winnt\system32, what happens in dual boot systems?
    win2k = c:\winnt\system32, what happens in dual boot systems? what happens when installed in D:\winnt\system32
    Xp = back to windows\system32

    can anyone please help me? i need to copy a file but dont know how to find out the drive letter of the windows installation

  2. #2
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    The Global Variable "_SystemFolder" is the standard "system" folder under the windows folder, whether it be "system32" for the newer OS's or plain ol' "system" folder under say, WIN98 installs. It will locate the [system] folder, even if the windows install folder was manually changed.

    HTH

  3. #3
    Join Date
    May 2005
    Posts
    5
    Thanks rhosk .

    I try this code and it is work ok

    Windows

    PHP Code:
    File.Copy("AutoPlay\\Docs\\NewMedia\\*.*"_WindowsFolder .. "\\Media"false); 

    ======
    system32

    PHP Code:
    File.Copy("AutoPlay\\Docs\\Test.txt"_SystemFolder .. "\\Text.txt"false); 
    ======
    Thanks again

Similar Threads

  1. Audio Tracks Project
    By Michael in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 03-18-2004, 10:58 PM
  2. how to copy file to system32 regardless of partition C: or D: etc
    By morci in forum AutoPlay Media Studio 4.0
    Replies: 4
    Last Post: 04-21-2003, 04:26 AM
  3. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  4. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts