A bat file that can be time saver

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Uzman Üye
Katılım
17 Tem 2020
Mesajlar
200
Çözümler
1
Tepki puanı
42
Ödüller
4
Yaş
33
5 HİZMET YILI
Something I made to make my life easier I was like maybe its nice to share even if most of people will not need that

Batch:
@echo off
echo Welcome to the Time Saver Batch Script!
echo.

REM Function to open a set of commonly used applications
:openApps
start "Chrome" "C:\Program Files\Google\Chrome\Application\chrome.exe"
start "Visual Studio Code" "C:\Program Files\Microsoft VS Code\Code.exe"
start "Slack" "C:\Program Files\Slack\slack.exe"
start "Discord" "C:\Program Files\Discord\Discord.exe"
echo Applications opened successfully.
echo.
goto :menu

REM Function to backup important files
:backupFiles
echo Starting backup process...
xcopy "C:\ImportantFiles" "D:\Backup" /E /I /Y
echo Backup completed successfully.
echo.
goto :menu

REM Main menu
:menu
echo Please select an option:
echo 1. Open commonly used applications
echo 2. Backup important files
echo 3. Exit
echo.

set /p choice=Enter your choice:

if "%choice%"=="1" (
    call :openApps
) else if "%choice%"=="2" (
    call :backupFiles
) else if "%choice%"=="3" (
    exit
) else (
    echo Invalid choice. Please try again.
    echo.
    goto :menu
)


  1. Open commonly used applications: This option will open a set of commonly used applications such as Google Chrome, Visual Studio Code, Slack, and Discord. You can modify the paths to match the locations of these applications on your system.
  2. Backup important files: This option will initiate a backup process where it copies all files from the "C:\ImportantFiles" directory to the "D:\Backup" directory. You can adjust the source and destination paths to match your desired backup locations.
  3. Exit: This option will exit the script.
You can customize this script by adding more functions and options based on your specific needs. Save the script with a .bat extension and run it to access the menu.
 
Normal life simple love that is all i need
Onaylı Üye
Katılım
13 Nis 2018
Mesajlar
106
Tepki puanı
15
Ödüller
6
Yaş
36
Sosyal
8 HİZMET YILI
It very helpful when the power is off
 
Onaylı Üye
Katılım
16 Haz 2023
Mesajlar
52
Tepki puanı
5
Yaş
25
2 HİZMET YILI
bat ? what is it , the thing i use to beat up my brother when he touch my pc ?
 
Uzman Üye
Katılım
17 Tem 2020
Mesajlar
200
Çözümler
1
Tepki puanı
42
Ödüller
4
Yaş
33
5 HİZMET YILI
So it opens all the daily apps in single click? wouldnt that freeze the pc abit?
on this code it open "Google Chrome, Visual Studio Code, Slack, and Discord" cuz that's for my need and some people could have the same need, but you can edit this part to make it open the program u want !
Post automatically merged:

bat ? what is it , the thing i use to beat up my brother when he touch my pc ?
its a windows command line langage, that make us be able to create script to automate some task on windows.
 
Make MG Great Again
Donator
Katılım
9 Eki 2020
Mesajlar
151
Tepki puanı
18
Ödüller
6
Yaş
43
5 HİZMET YILI
but u can do it with about 10 lines. but this also can help anyone. (not for me) i can create better and powerful
 
Süper Üye
Katılım
15 May 2019
Mesajlar
664
Çözümler
2
Tepki puanı
40
Ödüller
7
Yaş
25
7 HİZMET YILI
The batch script given appears to be mainly correct, however, there is a slight issue with how the start command is used in the:eek:penApps method. The title of the window should be supplied independently from the application to be launched.
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst