What is the current directory in a batch file?

From within your batch file: %cd% refers to the current working directory (variable) %~dp0 refers to the full path to the batch file’s directory (static) %~dpnx0 and %~f0 both refer to the full path to the batch directory and file name (static). See also: What does %~dp0 mean, and how does it work?

How can I add a blank directory to a Git repository?

Another way to make a directory stay (almost) empty (in the repository) is to create a .gitignore file inside that directory that contains these four lines: Then you don’t have to get the order right the way that you have to do in m104’s solution. This also gives the benefit that files in that directory … Read more

Compare 2 directories in windows

For Windows you can use this solution. Here’s the right way to do it, without the external downloads. It looks like a lot at first, but once you’ve done it, it’s very easy.It works in all Windows versions from 7 back to 95. For our example assume that you’re comparing two directories named ‘A’ and ‘B’. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)