Uzman Üye
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
)
- 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.
- 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.
- Exit: This option will exit the script.