Skip to content

How to set a variable? #2494

Answered by daxgames
avila asked this question in Q&A
Discussion options

You must be logged in to vote

Cmder default session is based on cmd.exe which uses *.bat or *.cmd as scripts. This is often referred to as DOS batch or simply batch.

set x=1
echo %x%

You can also use Git Bash inside Cmder by launching a bash::bash session.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by avila
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants