본문 바로가기
반응형

2017/05/253

[Windows] BatchFile에서 관리자 권한 요청 하기 작업방법 1: 배치파일에 포함된 관리자 권한 실행 코드 @echo off >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" if '%errorlevel%' NEQ '0' ( echo 관리 권한을 요청 ... goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" set params = %*:"="" echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\ge.. 2017. 5. 25.
[postgreSQL] 무인설치모드(mode unattended) postgreSQL mode unattended postgreSQL에는 무인설치(unattended)라는 모드가 있다.한번만 실행하면 자동적으로 셋팅값을 읽어서 설치하는 것이다.무인설치는 다른 말로 사일런스 설치(silence) 라고도 한다.하지만 자료는 무인설치라고 찾아볼 때 더 적확하다. 이때, 셋팅값은 개발자가 이미 셋팅해주어야 한다. 설치방식은 커맨드라인 방식이다. 커맨드라인에 설치에 필요한 값을미리 셋팅한다. 사용자는 해당 bat파일을 실행만 하면 된다. 그러면 원클릭으로 Database를 설치할 수 있다. 무인설치 명령어 (wnidows OS) postgres-version-windows.exe --mode unattended --superpassword database_superuser_pa.. 2017. 5. 25.
[postgreSQL] 설명 모음집 [PostgreSQL Admin] - 7. Tablespacehttp://ktdsoss.tistory.com/404PostgreSQL 9.4.1 DocumentationC:\Program Files\PostgreSQL\9.4\doc\postgresql\html\index.htmlPL/pgSQL (en)http://postgres.cz/wiki/PL/pgSQL_(en)ActivePerl Downloadshttp://www.activestate.com/activeperl/downloadsK's LAB Postgresql 마이그레이션도구 Ora2Pg 소개http://ap424.tistory.com/1ora2pghttp://ora2pg.darold.net/index.htmlOracle to Postgres Co.. 2017. 5. 25.
반응형