Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2002
    Posts
    17

    how to copy file to system32 regardless of partition C: or D: etc

    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

    Morci


  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: how to copy file to system32 regardless of partition C: or D: etc

    Have you tried using %WinDir% ?

    Corey Milner
    Creative Director, Indigo Rose Software

  3. #3
    Join Date
    Nov 2002
    Posts
    17

    Re: how to copy file to system32 regardless of partition C: or D: etc

    Hi Corey,
    Does this mean that i can copy file like this?

    File.Copy (%WinDir%\System32)

    How about delete?
    Can i just ran command to delete file like this
    File.Delete (%WinDir%\System32\xnmp.exe)

    Thanks
    Morci

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: how to copy file to system32 regardless of partition C: or D: etc

    Test it out and see, I'm no expert on Windows, should work though... Some of the other staff are more up on that than me, I'm sure someone else will be checking in over the next day or so...

    Corey Milner
    Creative Director, Indigo Rose Software

  5. #5
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244

    Re: how to copy file to system32 regardless of partition C: or D: etc

    Hi - you can use %SysDir% ... this is used for the path to the user’s Windows System directory
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

Posting Permissions

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