none
System 32 Folder Script Change

    Question

  • how do i go about changing this script so i can use it on any directory and not just the system 32 folder?

    Const HIDDEN_WINDOW = 12
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
         & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set objStartup = objWMIService.Get("Win32_ProcessStartup")
    Set objConfig = objStartup.SpawnInstance_
    objConfig.ShowWindow = HIDDEN_WINDOW
    Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process")
    errReturn = objProcess.Create("DRIVE f BITLOCKER.BAT", null, objConfig, intProcessID)

    Thanks

    Monday, April 09, 2012 9:55 AM

Answers