Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Derek
    replied
    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

    Leave a comment:


  • Corey
    replied
    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

    Leave a comment:


  • morci
    replied
    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

    Leave a comment:


  • Corey
    replied
    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

    Leave a comment:


  • 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

Working...
X