Skip to content

Multiple Files Opener

Choose a tag to compare

@Fajar-RahmadJaya Fajar-RahmadJaya released this 02 Nov 13:29
756a9db

Description :

You can open some files using shortcut. For example, i want to open files 1 and files 2 when clicking 'alt+left arrow'. I can do that with adjusting some of this code then run the script. After i click 'alt+left arrrow' it should opening files 1 and files 2. Files i mean here is not just files, you can use whatever in your device as long as it has their path like "D\MyFolder\MyFiles". You can use it if you don't want to go to your files directory or want to make your desktop clean. If you want the script to auto run on startup, click this for more info so you can add or remove your script from startup easily. Of course you can also not assign any shortcut to it so if the script clicked or run it will directly open the files or you can just made it to run on startup so your files will automatically opened when you log to your device. Adjust it to your preference and creativity.

How To Use Template :

You can change the code to your preferences like what i describe with adjusting some code such as :

  1. Assign Shortcut : alt & left::
  2. Open the files : Run("C:\Your\files\path\with\double\quotation\mark") (Be sure to change this)

Example Changing Template :

I will give you example if i want to change the code for it to behave like this :

  • Open chrome and download folder with shortcut assignment 'alt+space'
Alt & Space::
{
    Run("C:\Users\<username>\Desktop\Downloads - Shortcut.lnk") 
    Run("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk")
}
return

Full Code :

Alt & Left::
{
    Run("C:\\path\\to\\your\\file1.txt") ; Made sure to change this with your file path
    Run("C:\\path\\to\\your\\file2.txt") ; You can also copy and paste this line for more file like this
    Run("C:\\path\\to\\your\\file3.txt")
}
return