Author Topic: SFF  (Read 3595 times)

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 754
    • Email
SFF
« on: August 25, 2013, 09:34:36 AM »
Source code

Code: AutoIt
  1. ;Parsing
  2. Local $count = StringInStr($CmdLineRaw, ".exe", 0 , 1, 1)
  3. local $app = StringLeft ( $CmdLineRaw, $count + 4 )
  4. local $command = StringTrimLeft( $CmdLineRaw, $count + 4 )
  5. if not $command then exit 0
  6.    
  7. ;special part to find daemontool lite path
  8. Local $pathdaemon = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\DTLite.exe", "")
  9. If not $pathdaemon Then
  10.    MsgBox(4096, "Search error", "DAEMON Tools Lite not found. Please install it!")
  11.    exit 0
  12.  
  13. RunWait('"' & $pathdaemon & '" -mount 0,' & $command )
  14. RunWait('"' & $app & '"')
  15. RunWait('"' & $pathdaemon & '" -unmount 0')
  16.      

Executable

http://www.mgalaxy.com/forum/index.php?action=downloads;sa=view;down=39
« Last Edit: August 25, 2013, 03:54:58 PM by mgalaxy »