Jump to content

Is there any "anything that the user wrote in that part" variable in Batch?
Here's the code:

@[member='Echo'] offREM Please do not use the Member='Echo' example. It takes a lot more bytes and it can be shortened, and it is very inpopular.REM It makes the wrong thing and wrong member, so please do not use it.clsset code=(!x!)if "%1"=="/%color% "%code%"

I want the code part to be anything that could possibly exist. For example:
The code variable could be 123, and it was valid. Or 321, and it was still valid. Or auhedhfwsdiwbdxwmed wxwec wcs cscxhadiwueqwikx asxghasduwm xa diwqduyhwqoskwb dweu8fbefijewrf, and it was still valid. And !LñKäaÈZâE○☻♥♦♣♠ and it was STILL valid.

 
(I'm not sure if here is where i can ask questions about programming, but whatever)

Edited by NunoLava1998
Adding dem fancy code tags. ;-)

Ryzen 7 3700X / 16GB RAM / Optane SSD / GTX 1650 / Solus Linux

Link to comment
https://linustechtips.com/topic/513380-batch-file-anything-variable/
Share on other sites

Link to post
Share on other sites

@NanoTech56 I'm asking an question, not like discussing.

Batch is the language that you use in DOS, and the Windows Command Prompt. No, it isn't bash.

bro you act like im dumb, i've been writing batch files to troll my teachers for year 

 

@[member='Echo'] offa:open chrome.exegoto a
 

that was the best one kek

Edited by alpenwasser
Code tags are best tags
Link to post
Share on other sites

@NanoTech56 It makes. A variable (like for example, code) that literally = every choice possible. Which means: the variable can have a value of a and b and every other possibility available.

Ryzen 7 3700X / 16GB RAM / Optane SSD / GTX 1650 / Solus Linux

Link to post
Share on other sites

wut

 

Is there any "anything that the user wrote in that part" variable in Batch?

Here's the code:

@[member='Echo'] offREM Please do not use the Member='Echo' example. It takes a lot more bytes and it can be shortened, and it is very inpopular.REM It makes the wrong thing and wrong member, so please do not use it.clsset code=(!x!)if "%1"=="/%color% "%code%"

I want the code part to be anything that could possibly exist. For example:

The code variable could be 123, and it was valid. Or 321, and it was still valid. Or auhedhfwsdiwbdxwmed wxwec wcs cscxhadiwueqwikx asxghasduwm xa diwqduyhwqoskwb dweu8fbefijewrf, and it was still valid. And !LñKäaÈZâE○☻♥♦♣♠ and it was STILL valid.

 

(I'm not sure if here is where i can ask questions about programming, but whatever)

 

i think your asking to much from batch 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×