08-31-2012، 09:52 PM
(آخرین تغییر در ارسال: 08-31-2012، 09:54 PM توسط alakimalaki.)
با دستور environ میشه خیلی از دایرکتوری های ویندوز رو بدست اورد
مثلا با دستور environ ("windir") میشه میسر نصب ویندوز رو گرفت
من براتون مسیرایی که میشه با environ گرفت میزارم
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\lafeverc\Application Data
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=LAFEVERC
ComSpec=C:\WINDOWS\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\lafeverc
INCLUDE=D:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\includeLIB=D:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\LibLOGONSERVER=\\CG1BDC-7VH2H11
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Common Files\Adaptec Shared\System
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 11 Stepping 1, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0b01
ProgramFiles=C:\Program Files
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\lafeverc\LOCALS~1\Temp
TMP=C:\DOCUME~1\lafeverc\LOCALS~1\Temp
ULTRAMON_LANGDIR=C:\Program Files\UltraMon\Resources\en
USERDOMAIN=CG1
USERNAME=lafeverc
USERPROFILE=C:\Documents and Settings\lafeverc
VSCOMNTOOLS="D:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\"
APPDATA=C:\Documents and Settings\lafeverc\Application Data
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=LAFEVERC
ComSpec=C:\WINDOWS\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\lafeverc
INCLUDE=D:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\includeLIB=D:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\LibLOGONSERVER=\\CG1BDC-7VH2H11
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Common Files\Adaptec Shared\System
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 11 Stepping 1, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0b01
ProgramFiles=C:\Program Files
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\lafeverc\LOCALS~1\Temp
TMP=C:\DOCUME~1\lafeverc\LOCALS~1\Temp
ULTRAMON_LANGDIR=C:\Program Files\UltraMon\Resources\en
USERDOMAIN=CG1
USERNAME=lafeverc
USERPROFILE=C:\Documents and Settings\lafeverc
VSCOMNTOOLS="D:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\"
windir=C:\WINDOWS
راه در جهان یکیست و آن راه راستیست
(زرتشت)
(زرتشت)