Create custom shortcut for Ccleaner


  1. Posts : 5,208
    21H1 64 Bit Home
       #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 : 35,537
    Win 10 Pro (21H2) (2nd PC is 21H2)
       #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 : 5,208
    21H1 64 Bit Home
    Thread Starter
       #3

    Okay. will try.
      My Computer


  4. Posts : 5,208
    21H1 64 Bit Home
    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 : 5,208
    21H1 64 Bit Home
    Thread Starter
       #5

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

  6.   My Computers


  7. Posts : 7,484
    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 : 5,208
    21H1 64 Bit Home
    Thread Starter
       #8

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


  9. Posts : 7,484
    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 11:56.
Find Us




Windows 10 Forums