This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUNAS /USER:postgres "CMD.EXE" | |
SET PATH=C:\Program Files\PostgreSQL\9.2\bin;%PATH% | |
pg_upgrade.exe --check --old-datadir "c:\ProgramData\PostgreSQL\9.1\data" --new-datadir "c:\ProgramData\PostgreSQL\9.2\data" --old-bindir "C:/Program Files/PostgreSQL/9.1/bin" --new-bindir "C:/Program Files/PostgreSQL/9.2/bin" --old-port 50431 --new-port 50432 --retain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set TOTAL=-0 | |
for /F %%i IN ('WMIC PROCESS WHERE Description^="chrome.exe" GET workingsetsize ^| findstr "[0-9]"') DO set /a TOTAL+=%%i/1024/1024 | |
echo Chrome sucked up %TOTAL%MB of RAM |
OlderNewer