Skip to main content

Launch multiple programs with one shortcut in Windows Operating System

 

Yes...!! you heard is right 😊and it’s possible with simple coded steps.

When we’re getting into a Daily work, we’ve to deal with many Tools, Editors, Folders and Files. Opening of all these on daily basis is a tedious job 😖.

In My Scenario, daily I’ve to open multiple chrome browsers, project folders, files and visual studio to continue my regular project tasks. To mitigate this, I am bringing up this article for you


Just by writing simple coded steps in a Notepad/any editor to overcome this.

Write below code in notepad and click on File->Save As -> Give your name followed by .bat extension and click on OK button. Now your shortcut key is ready. Just double click it and have fun with it.

Below is the code:

@echo off

:: Open folders

start %USERPROFILE%\Documents\

start %USERPROFILE%\Desktop\Test\

:: Open files

start "" "%USERPROFILE%\Desktop\DeskTop\SM\test.txt"

::Open browser

start chrome.exe

start " " https://www.freecodecamp.org/learn/

exit


Let’s Understand this code line by line

@echo off – is a command that disable the echoing or displaying on the screen and suppresses echoing for the terminal attached to a specified process.

Exit – to exit from program, act as a break line in coding

::Open Folders  - it opens respective folders based on paths given. Here it’ll open Documents Folder

start %USERPROFILE%\Documents\

You’ve to specify your folder name and its relevant path  in above command like given as Documents\

 

:: Open files - it opens respective files based on paths given. Here it’ll open test.txt file from SM Folder. Remember we’ve to provide path including .extension of the file (like .xls, .exe)

start "" "%USERPROFILE%\Desktop\Desktop\SM\test.txt"

You’ve to specify your file name with extension(.txt)  in above command like given as test.txt

 

::Open browser - it opens chrome browser and opens given url. If you’ve not given chrome.exe, given URL opens in a Default browser

start chrome.exe

start " " http://knowhowtechgeek.blogspot.com/


If you’re not able to find exact paths of your files, folders, browsers and other tools.

Follow Below

Step 1: Open the Start menu and go to All apps to find the first program you want to open in your batch. Right-click on the program and click Open file location.

Step 2: A File Explorer window will open to the program's location. Right-click on the program in the File Explorer window and click Properties.

Step 3: In the Properties window, click the Shortcut tab. Find Target: field, select the text in the textbox, and copy it. And use in your batch scripts

Step 4: Repeat steps 1 through 3 for the second (and third, and fourth) program(s) you want to open in this shortcut.


Comments

Popular posts from this blog

Brief Overview of RPA

Brief Overview of RPA:     §   In short, it’s a way for machines to replace human workers in regular activities done across the organization.     §   It works on both Front End & Back End applications/operations.     §   BOT provides Virtual automation agents , it acts like MIMIC HUMANS .     §   BOT ’s available in Clouds/Servers     §   BOT is nothing but a configurable software set up, works only on rule-based triggers     §   It automates Non-Value –added works     §   It is a Sub Domain of BPMS (Business Process Management Software)

RPA Implementation Approach

RPA Implementation Approach: 1. Tool Selection o     Based on user requirements, features available in tools, you’ve to select TOOL from mentioned above         2. Process Prioritization o     After successful section of Tool, you’ve to consolidate & prioritize the all processes in current operation. Let’s start automating lowest first and most important to next

Types of Recording

Types of Recording: 4 types of recording modes are available Ø   Basic Ø   Desktop Ø   Web Ø   Citrix 2 ways of Recording Ø   Automatic Ø   Manual Basic – generates a full selector for each activity and no container, the resulted automation is slower than one that uses containers and is suitable for single activities. Desktop – suitable for all types of desktop apps and multiple actions; it is faster than the Basic recorder, and generates a container (with the selector of the top-level window) in which activities are enclosed, and partial selectors for each activity. Web – designed for recording in web apps and browsers (supported: Internet Explorer, Google Chrome), generates containers and uses the Simulate Type/Click input method by default. Citrix – used to record virtualized environments (VNC, virtual machines, Citrix, etc.) or SAP, permits only image, text and keyboard automation, and requires explici...