I want to set a directory path to variable using Windows Command Line without any user-interaction. So, like we do in Ubuntu OS:
my_path=$pwd
Here, output of pwd will get stored in my_path.
How to do this kind of task in Windows Command Line?
CodePudding user response:
Actually, the more natural way in bash would have been
my_path=$PWD
Taking over this idea to Windows batch language, it would become
SET my_path= 