Created
September 29, 2025 22:12
-
-
Save langheran/61b548bb62b51f96a0a31428d94758a3 to your computer and use it in GitHub Desktop.
C:\Users\NisimHurst\NDS\scripts\0. copy user or password.example.bat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| setlocal | |
| :PROMPT | |
| SET /P ACTION=User or Password (U/[P])? || SET "ACTION=P" | |
| IF /I NOT "%ACTION%"=="U" IF /I NOT "%ACTION%"=="P" GOTO END | |
| IF /I "%ACTION%" == "U" GOTO USER | |
| IF /I "%ACTION%" == "P" GOTO PASS | |
| :PASS | |
| echo|set/p=<password>|clip | |
| GOTO END | |
| :USER | |
| echo|set/p=<user>|clip | |
| GOTO END | |
| :END | |
| endlocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment