How to start psql.exe

You don’t run some psql.exe file, but the file C:\Program Files\PostgreSQL\10\scripts\runpsql.bat , for example programmatically, e.g. from AHK: run, “C:\Program Files\PostgreSQL\10\scripts\runpsql.bat” Then you get a generic Windows command window which asks you the right questions (see above) and, when answered correctly, gives you the psql command prompt.

Passing around multi-line strings

You can create directly multiline strings with the caret (one empty line is required). setlocal EnableDelayedExpansion set multiLine=This is a ^ multiline text^ line3 echo !multiLine! Or you can create first a newline character. setlocal EnableDelayedExpansion set LF=^ rem Two empty lines are required set multiLine=This is a!LF!multiline text!LF!line3 echo !multiLine! An explanation how this … Read more

Invalid syntax with setx

Your path to the Ogre SDK has a space character in it, which is interpreted as a delimiter to another argument. Surround your path with ” to keep it as one single argument to setx: setx OGRE_HOME “D:\Program Files\OgreSDK” To see the current value of the OGRE_HOME environment variable: echo %OGRE_HOME% You may have to … Read more

How to make Windows key the IntelliJ IDEA Command/Meta key under Windows?

Here’s a workaround that works partly. In IDEA do the following: Help -> Edit Custom Properties… In the file that opens, add this on a new line: keymap.windows.as.meta=true Choose your Mac keymap under File -> Settings… -> Keymap. For example, “Mac OS X 10.5+”. If you use a Windows keyboard and you want the same … Read more

Run a shortcut with a batch file

The help for start contains this tidbit: START [“title”] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED] [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL] [/NODE <NUMA node>] [/AFFINITY <hex affinity mask>] [/WAIT] [/B] [command/program] [parameters] “title” Title to display in window title bar. In other words the first quoted string will … Read more

XAMPP Object not found error

Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. You’re having problem because the object really doesn’t exist in your htdocs directory. You don’t have to append xampp after localhost or 127.0.0.1 because xampp will treat it as an … Read more

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