svm.exe command lines

Discussion in 'Scripting' started by tnx, Aug 31, 2021.

  1. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    With cmv.exe and the .bat file placed into "Windows" and adding the following code into the registry......

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\Extract]
    
    [HKEY_CLASSES_ROOT\*\shell\Extract\command]
    @="\"C:\\Windows\\Extract.bat\" \"%1\""
    Works perfectly..

    Just need to find\make a suitable icon..

    Thanks a lot guys...
     
  2. Sajjo

    Sajjo MDL Member

    Feb 6, 2018
    2,245
    3,258
    90
    If you like the original...
     

    Attached Files:

  3. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    nice...
     
  4. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Just found something interesting...

    Right click on the .svf file, select properties then "Opens With"
    Change it to the .bat file, which I have living in Windows.
    Then all you have to do is double click on the .svf file and it extracts the chosen .iso image. Even better...

    :cool:
     
  5. Sajjo

    Sajjo MDL Member

    Feb 6, 2018
    2,245
    3,258
    90
    Yeah...didn't think on that.
    Just a heads up, if you use several tools combined that may not work as intended always.
     
  6. Sajjo

    Sajjo MDL Member

    Feb 6, 2018
    2,245
    3,258
    90
    @tnx
    Maybe this is interesting
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.svf\shell\Extract.bat]
    @="Extract.bat"
    "Icon"="C:\\Windows\\Icon9.ico"
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.svf\shell\Extract.bat\command]
    @="\"C:\\Windows\\Extract.bat\" \"%1\""
    
    
    Icon9.ico #22 > same place as Extract.bat

    Delete your old registry key.
    Now you will see that only svf files will show you context entry to Extract.bat.
     
  7. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    I should have thought of that.

    I did that when I made my "VeriHash" app. I used this REG entry
    Code:
    Windows Registry Editor Version 5.00
    
    :: Save this file as "Add Open With VeriHash To The Context Menu .svf and .iso Images Only.reg"
    
    
    
    :: Add Open With VeriHash To The Context Menu .svf and .iso Images Only
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.svf\Shell\Open With VeriHash]
    "icon"="C:\\VeriHash\\Data\\Icons\\Hash.ico"
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.svf\Shell\Open With VeriHash\Command]
    ::@="mshta vbscript:CreateObject(\"wscript.shell\").Run(\"cmd /c chcp 65001 && echo | set /p x=\"\"%1\"\" | clip | C:\\VeriHash\\VeriHash.exe\",0)(window.close)"
    @="mshta vbscript:CreateObject(\"wscript.shell\").Run(\"cmd /c chcp 65001 && echo | set /p x=\"\"%1\"\" | clip | C:\\VeriHash\\Data\\nircmd\\nircmd.exe clipboard writefile C:\\VeriHash\\Data\\Docs\\Image.txt | C:\\VeriHash\\VeriHash.exe\",0)(window.close)"
     
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.iso\Shell\Open With VeriHash]
    "icon"="C:\\VeriHash\\Data\\Icons\\Hash.ico"
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.iso\Shell\Open With VeriHash\Command]
    ::@="mshta vbscript:CreateObject(\"wscript.shell\").Run(\"cmd /c chcp 65001 && echo | set /p x=\"\"%1\"\" | clip | C:\\VeriHash\\VeriHash.exe\",0)(window.close)"
    @="mshta vbscript:CreateObject(\"wscript.shell\").Run(\"cmd /c chcp 65001 && echo | set /p x=\"\"%1\"\" | clip | C:\\VeriHash\\Data\\nircmd\\nircmd.exe clipboard writefile C:\\VeriHash\\Data\\Docs\\Image.txt | C:\\VeriHash\\VeriHash.exe\",0)(window.close)"
    
    Will use your code, cheers..