bash - How to assign chdir to a variable in .bat? -


I am trying to translate a bat script into a .bat script. The specific line at which I am tripping is:

  x = 'pwd'  

.bat is equal?

I need to take that directory that the script is currently running as a variable, so I can use a common relative path to find files in the directory. I'm running on Windows XP at a command prompt.

The current directory is available in pseudo-current % cd% . Therefore:

  set X =% cd%  

stores it in the named variable.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -