How to “comment-out” (add comment) in a batch/cmd?

Use :: or REM :: commenttttttttttt REM commenttttttttttt BUT (as people noted): if they are not in the beginning of line, then add & character: your commands here & :: commenttttttttttt Inside nested parts (IF/ELSE, FOR loops, etc…) :: should be followed with normal line, otherwise it gives error (use REM there). :: may also … Read more

What does %~dp0 mean, and how does it work?

Calling for /? in the command-line gives help about this syntax (which can be used outside FOR, too, this is just the place where help can be found). In addition, substitution of FOR variable references has been enhanced. You can now use the following optional syntax: %~I – expands %I removing any surrounding quotes (“) … Read more

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