2008년 8월 1일 금요일

[펌글] 윈도우 경로 지정법

출처 : http://www.particlesoftware.com/en/variables.html

가장 마지막줄에 보면 XP랑 비스타 언급이 없네요.
즉 오래된 자료 같습니다.
따라서 모든 경로가 다 먹히지는 않을겁니다.
아래 첫 문단에도 설명이 되어 있구요.

XP 튜닝하시는 분들이 많으신데
조금이나마 도움 되실까봐 포스팅합니다.

(몇가지 확인해보니 되는게 별로 없네요 ^^;;)



 In large installations its common to use many different versions of Windows. IntraLaunch excels in these non-homogeneous desktop environments by using its built in macros, variables and functions to help dynamically address workstation indifferences. Each Windows version, user, profile, etc. all have different paths and locations for directories such as My Documents, Desktop, Windows, IE History, etc. IntraLaunch 4.1 and higher lets you manage these differences through variables by determining the correct path for the currently logged in user and automatically substituting it at run time when the user clicks a given IntraLaunch object.

   Below is a list of all support variables. Not all variables work in all versions of Windows. All variables are case sensitive. Only the parameters Run, RunParms, DefDir and Log will process variables.

  Example - run notepad.exe specifically held in the workstations Windows directory, open the file sales.txt currently on the users desktop, and make the default working directory for notepad the users My Documents folder, no matter where these actual folders exist IntraLaunch automatically determines the correct paths:

<PARAM NAME="Run" VALUE="%windir%\notepad.exe">
<PARAM NAME="RunParms" VALUE="%desktop%\sales.txt">
<PARAM NAME="DefDir" VALUE="%mydocuments%">

  Example - explore Internet Explorer's cache:

<PARAM NAME="Run" VALUE="%windir%\explorer.exe">
<PARAM NAME="RunParms" VALUE="%internet_cache%">


Variable Description
%yourvariable% Custom Variable
Any variable seen by the shell. IntraLaunch 4.8 and higher required. Can only be used with GetVariable().
%windir% Windows directory
Eg. C:\WINNT
%sysdir% Windows system folder
Eg. C:\WINNT\SYSTEM32
%program_files% Program Files directory
Eg. C:\Program Files
%program_files_common% Program Files\Common Files
Eg. C:\Program Files\Common Files
%desktop% Desktop folder
Eg. C:\Documents and Settings\Administrator\Desktop
%startmenu% Start Menu folder
Eg. C:\Documents and Settings\Administrator\Start Menu
%startmenu_programs% Start Menu - Programs folder
Eg. C:\Documents and Settings\Administrator\Start Menu\Programs
%startmenu_startup% Start Menu - Startup folder
Eg. C:\Documents and Settings\Administrator\Start Menu\Programs\Startup
%mydocuments% My Documents folder
Eg. C:\Documents and Settings\Administrator\My Documents
%favorites% Favorites folder
Eg. C:\Documents and Settings\Administrator\Favorites
%recent% Recently used folder
Eg. C:\Documents and Settings\Administrator\Recent
%sendto% SendTo folder
Eg. C:\Documents and Settings\Administrator\SendTo
%user_desktop% Desktop folder
Eg. C:\Documents and Settings\Administrator\Desktop
%fonts% Fonts folder
Eg. C:\WINNT\Fonts
%templates% Templates folder
Eg. C:\Documents and Settings\Administrator\Templates
%common_startmenu% Common Start Menu folder
Eg. C:\Documents and Settings\All Users\Start Menu
%common_startmenu_programs% Common Start Menu - Programs
Eg. C:\Documents and Settings\All Users\Start Menu\Programs
%common_startmenu_startup% Common Start Menu - Startup
Eg. C:\Documents and Settings\All Users\Start Menu\Programs\Startup
%common_desktop% Common desktop folder
Eg. C:\Documents and Settings\All Users\Desktop
%appdata% Application Data folder
Eg. C:\Documents and Settings\Administrator\Application Data
%internet_cache% IE cache folder
Eg. C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files
%cookies% IE Cookies folder
Eg. C:\Documents and Settings\Administrator\Cookies
%history% History folder
Eg. C:\Documents and Settings\Administrator\Local Settings\History
%mypictures% My Pictures folder
Eg. C:\Documents and Settings\Administrator\My Documents\My Pictures
%profile% Users profile root folder
Eg. C:\Documents and Settings\Administrator
%nethood% Network neighborhood
Eg. C:\Documents and Settings\Administrator\NetHood
%common_templates% Common templates folder
Eg. C:\Documents and Settings\All Users\Templates
%common_documents% Common documents folder
Eg. C:\Documents and Settings\All Users\Documents
%username% * Username of user logged in
Eg. Administrator
%userdomain% * Domain user is currently part of
Eg. DOMAINNAME
%tmpfolder% * Path to TMP folder
Eg. C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
%tempfolder% * Path to TEMP folder
Eg. C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
%systemdrive% * Drive letter of system drive
Eg. C:
%os% * Name of operating system in use
Eg. Windows_NT
%homepath% * Typicall path to root
Eg. \
%homedrive% * Path home drive is on
Eg. C:
%comspec% * Full path to command interperter
Eg. C:\WINNT\system32\cmd.exe
%computername% * Name of workstation
Eg. COMPUTERNAME
  • These new variables are obtained from the workstation's shell. Opening a command prompt and doing a "set" command will show them under WindowsNT and higher. These variables must be explicitly set under Windows95/98/ME in autoexec.bat.

댓글 10개:

  1. 평소에 식객이랑 프로그램들 댓글도 안남기고 그냥 받아가는 얌체입니다.

    상대경로가 아니라 절대경로 아닌가요?

    상대경로면 컴퓨터마다 달라지는것이고 절대경로일 경우 모두 같은걸로 알고있는데요.

    거기에 winrar에서도 절대경로라고 표현하기에 절대경로가 맞는것 같습니다.

    답글삭제
  2. @Click! - 2008/08/01 12:10
    아 그런가요? 전 C:\WINDOWS 이렇게 하면 절대경로이고 %WINDIR% 이렇게 하면 상대경로인줄...

    그냥 경로라고 수정해야겠네요 ㅎㅎ

    답글삭제
  3. 오 좋은 정보 감사 합니다.. ㅎㅎ 자동 설치 만들때나 무지 유용한..

    답글삭제
  4. @RiosMV - 2008/08/01 16:43
    확인해보시면 아시겠지만 되는거 몇개 없습니다 ;;;

    그냥 평소대로

    %WINDIR% 하고 %SYSTEMDRIVE% 정도만 쓰게되네요.

    답글삭제
  5. 자꾸 이것저것 확인만 하러 와서 죄송합니다.

    여기저기 보다보니 별다른 버전 네임없이 그냥 스누피 XP SP3 8월1일자 버전이란게 떠돌더군요.



    정말 릴리즈 하신게 맞나요?

    답글삭제
  6. @크리슈나아바타라 - 2008/08/03 14:06

    답글삭제
  7. @AirBorne - 2008/08/03 19:28
    워낙 짝퉁이 많은 세상이라 매번 의심스럽군요. ㅠㅠ

    그나저나 릴은 어디에서 하시나요?



    여기 티스토리에는 릴 정보가 안보이네요? 저만 못찾는 건가요? ㅠㅠ

    답글삭제
  8. @크리슈나아바타라 - 2008/08/03 14:06
    블로그에 그런 이야기 남기는게 좋은 방법은 아니겠죠?

    답글삭제
  9. snoopy님 블로그엔 항상 필요한 자료가 있네요^^

    감사히 잘쓰겠습니다~

    답글삭제