Windowsã§ç°å¢å¤æ°ã表示
ã³ãã³ãããã³ããã§ä¸è¨ãå®è¡ããã
echo "[\%cmdextversion\%]" %cmdextversion% > c:\env.txt echo "[\%computername\%]" %computername% >> c:\env.txt echo "[\%comspec\%]" %comspec% >> c:\env.txt echo "[\%date\%]" %date% >> c:\env.txt echo "[\%errorlevel\%]" %errorlevel% >> c:\env.txt echo "[\%homedrive\%]" %homedrive% >> c:\env.txt echo "[\%homepath\%]" %homepath% >> c:\env.txt echo "[\%homeshare\%]" %homeshare% >> c:\env.txt echo "[\%number_of_processors\%]" %number_of_processors% >> c:\env.txt echo "[\%os\%]" %os% >> c:\env.txt echo "[\%path\%]" %path% >> c:\env.txt echo "[\%pathext\%]" %pathext% >> c:\env.txt echo "[\%processor_architecture\%]" %processor_architecture% >> c:\env.txt echo "[\%processor_identifier\%]" %processor_identifier% >> c:\env.txt echo "[\%processor_level\%]" %processor_level% >> c:\env.txt echo "[\%processor_revision\%]" %processor_revision% >> c:\env.txt echo "[\%random\%]" %random% >> c:\env.txt echo "[\%systemdrive\%]" %systemdrive% >> c:\env.txt echo "[\%systemroot\%]" %systemroot% >> c:\env.txt echo "[\%temp\%]" %temp% >> c:\env.txt echo "[\%tmp\%]" %tmp% >> c:\env.txt echo "[\%time\%]" %time% >> c:\env.txt echo "[\%windir\%]" %windir% >> c:\env.txt echo "[\%allusersprofile\%]" %allusersprofile% >> c:\env.txt echo "[\%appdata\%]" %appdata% >> c:\env.txt echo "[\%cd\%]" %cd% >> c:\env.txt echo "[\%cmdcmdline\%]" %cmdcmdline% >> c:\env.txt echo "[\%logonserver\%]" %logonserver% >> c:\env.txt echo "[\%prompt\%]" %prompt% >> c:\env.txt echo "[\%temp\%]" %temp% >> c:\env.txt echo "[\%tmp\%]" %tmp% >> c:\env.txt echo "[\%userdomain\%]" %userdomain% >> c:\env.txt echo "[\%username\%]" %username% >> c:\env.txt echo "[\%userprofile\%]" %userprofile% >> c:\env.txt start c:\env.txt
ã·ã¹ãã ç°å¢å¤æ°
ç°å¢å¤æ° | 説æ |
---|---|
%cmdextversion% | ã³ãã³ãããã»ããµæ¡å¼µæ©è½ã®ãã¼ã¸ã§ã³çªå· |
%computername% | ã³ã³ãã¥ã¼ã¿ã¼å |
%comspec% | å®è¡å¯è½ãªã³ãã³ãã·ã§ã«ã®æ£ç¢ºãªãã¹å |
%date% | ç¾å¨ã®æ¥ä» |
%errorlevel% | ç´åã«ä½¿ç¨ããã³ãã³ãã®ã¨ã©ã¼ã³ã¼ã |
%homedrive% | ã¦ã¼ã¶ã¼ã®ãã¼ã ãã£ã¬ã¯ããªããããã©ã¤ãå |
%homepath% | ã¦ã¼ã¶ã®ãã¼ã ãã£ã¬ã¯ããªã®å ´æ |
%homeshare% | ã¦ã¼ã¶ã¼ã®å ±æãã¼ã ãã£ã¬ã¯ããªã¸ã®ãããã¯ã¼ã¯ãã¹ |
%number_of_processors% | ã³ã³ãã¥ã¼ã¿ã¼ã«æè¼ããã¦ããCPUã®æ° |
%os% | ãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ã®åå |
%path% | å®è¡å¯è½ãã¡ã¤ã«ã®æ¤ç´¢ãã¹ |
%pathext% | å®è¡å¯è½ãã¡ã¤ã«ã®æ¡å¼µåã®ä¸è¦§ |
%processor_architecture% | CPUã®ãããã¢ã¼ããã¯ã㣠|
%processor_identifier% | CPUã®èª¬æ |
%processor_level% | CPUã®ã¢ãã«çªå· |
%processor_revision% | CPUã®ãªãã¸ã§ã³çªå· |
%random% | ä¹±æ° |
%systemdrive% | ã«ã¼ããã£ã¬ã¯ããªããããã©ã¤ãå |
%systemroot% | ã«ã¼ããã£ã¬ã¯ããªã®å ´æ |
%temp%ãã¾ãã¯ã%tmp% | ã¢ããªã±ã¼ã·ã§ã³ã®ä¸æãã£ã¬ã¯ããªã®å ´æ |
%time% | ç¾å¨ã®æå» |
%windir% | windowsã®ã·ã¹ãã ãã£ã¬ã¯ããªã®å ´æ |
ãã¼ã«ã«ç°å¢å¤æ°
ãã°ã¤ã³ããã¦ã¼ã¶ã¼ãã¨ã«ä¿æãããç°å¢å¤æ°ã
ãã®ãã¡ãã¦ã¼ã¶ã¼ãç¬èªã«ä½æãããã®ã¯ã¦ã¼ã¶ã¼ç°å¢å¤æ°ã¨ããã
ç°å¢å¤æ° | 説æ |
---|---|
%allusersprofile% | All Users ã®ãããã¡ã¤ã«ã®å ´æ |
%appdata% | ã¢ããªã±ã¼ã·ã§ã³ãã¼ã¿ã®è¦å®ä¿åå ´æ |
%cd% | ã«ã¬ã³ããã£ã¬ã¯ããªã®ãã¹ |
%cmdcmdline% | ã³ãã³ãããã³ãããèµ·åããããã®çµ¶å¯¾ãã¹ |
%logonserver% | ãã°ãªã³å ã®ãµã¼ãã¼å |
%prompt% | ã³ãã³ãããã³ããã®è¡¨ç¤ºæååã®è¨å®å¤ |
%temp% %tmp% | ã¢ããªã±ã¼ã·ã§ã³ã®ä¸æãã£ã¬ã¯ããªã®å ´æ |
%userdomain% | ãã¡ã¤ã³å |
%username% | ã¦ã¼ã¶ã¼å |
%userprofile% | ã¦ã¼ã¶ã¼ã®ãããã¡ã¤ã«ã®å ´æ |