Windows/DOS

From dbawiki
Revision as of 17:28, 16 December 2013 by Stuart (talk | contribs) (Created page with "===Return the value of a function into a variable in DOS batch .bat file=== What an awful language! <pre> set NLS_LANG= @echo NLS_LANG has been cleared @FOR /F "usebackq delim...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Return the value of a function into a variable in DOS batch .bat file

What an awful language!

set NLS_LANG=
@echo NLS_LANG has been cleared
@FOR /F "usebackq delims=!" %%i IN (`sqlplus -s /nolog @set_NLS_LANG.sql`) DO @set NLS_LANG=%%i
@echo NLS_LANG has been set to %NLS_LANG%