Create custom shortcut for Ccleaner


  1. Posts : 6,849
    22H2 64 Bit Pro
       #1

    Create custom shortcut for Ccleaner


    Does anyone know how to get these commands into one shortcut that will launch them when clicked?

    Create custom shortcut for Ccleaner-ccleaner.jpg

    RUNAS regedit /s "C:\Users\Chris\Documents\System Stuff\Ccleaner Reg\Ccleaner.reg"
    RUNAS regedit /s "C:\Users\Chris\Documents\System Stuff\Ccleaner Reg\Ccleaner2.reg"
    "C:\Program Files\CCleaner\CCleaner64.exe"

    Thanks.
      My Computer


  2. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Suggest you create a bat file, shortcut to that.

    Or you could put the equivalent of all of those into an Autohotkey script, shortcut to that.
      My Computers


  3. Posts : 6,849
    22H2 64 Bit Pro
    Thread Starter
       #3

    Okay. will try.
      My Computer


  4. Posts : 6,849
    22H2 64 Bit Pro
    Thread Starter
       #4

    @echo off
    RUNAS regedit /s "C:\Users\Chris\Documents\System Stuff\Ccleaner Reg\Ccleaner.reg"
    RUNAS regedit /s "C:\Users\Chris\Documents\System Stuff\Ccleaner Reg\Ccleaner2.reg"
    "C:\Program Files\CCleaner\CCleaner64.exe"
    echo
    exit /B

    So now I need to hide the window that pops up?
      My Computer


  5. Posts : 6,849
    22H2 64 Bit Pro
    Thread Starter
       #5

    Never mind. Solved via bat to exe converter.
      My Computer

  6.   My Computers


  7. Posts : 7,607
    Windows 10 Home 20H2
       #7

    Callender said:
    So now I need to hide the window that pops up?
    VBScript can run .exe, .cmd, and .bat files with no pop-up window.

    CreateObject("wscript.shell").run("""D:\A folder\ABC.cmd"""),0

    0 stops the window appearing.
      My Computer


  8. Posts : 6,849
    22H2 64 Bit Pro
    Thread Starter
       #8

    I prefer a clickabe icon for this particular shortcut.
      My Computer


  9. Posts : 7,607
    Windows 10 Home 20H2
       #9

    You may create a shortcut and change its icon.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:34.
Find Us




Windows 10 Forums