Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   variables de windows (https://www.clubdelphi.com/foros/showthread.php?t=66721)

flashtkd 09-03-2010 14:10:51

variables de windows
 
directorio de windows

1-cuales son las variables de windows ¿? como lo puedo saber?.
2-si uso xp, vista o windows 7, usa las mismas variables?.

C:\Archivos de programa [%programas%]
C:\Documents and Settings [%Documents and Settings%]
C:\WINDOWS [%WINDOWS%]
C:\Documents and Settings\user_1 [%Documents and Settings%\user]

Neftali [Germán.Estévez] 09-03-2010 15:54:28

En este hilo hay una respuesta de Dec, donde tienes el código de una Unit para obtener todos los "directorios especiales" del sistema.
Se trata de llamar al procedimiento con las diferentes constantes (segun el directorio que quieras obtener).

Si quieres más información busca por:
SHGetSpecialFolderPath

MAXIUM 10-03-2010 01:02:35

Environment Variables
MS DOS
%APPEND%
%BLASTER%
%COMSPEC%
%COPYCMD%
%DIRCMD%
%DOSSHELL%
%MSDOSDATA%
%NO_SEP%
%PATH%
%PROMPT%
%TEMP%
%TZ%

additional variables in: MS WINDOWS
%CMDLINE%
%COMPUTERNAME%
%TMP%
%winbootdir%
%windir%
%WINPMT%

additional variables in: MS WINDOWS NT
%ALLUSERSPROFILE%
%APPDATA%
%CD%
%CMDCMDLINE%
%CMDEXTVERSION%
%COMMONPROGRAMFILES%
%DATE%
%ERRORLEVEL%
%HOMEDRIVE%
%HOMEPATH%
%HOMESHARE%
%LOGONSERVER%
%MORE%
%NUMBER_OF_PROCESSORS%
%OS%
%OS2LIBPATH%
%PATHEXT%
%PROCESSOR_ARCHITECTURE%
%PROCESSOR_IDENTIFER%
%PROCESSOR_LEVEL%
%PROCESSOR_REVISION%
%PROGRAMFILES%
%RANDOM%
%SESSIONNAME%
%SYSTEMDRIVE%
%SYSTEMROOT%
%TIME%
%USERDOMAIN%
%USERNAME%
%USERPROFILE%


La franja horaria es GMT +2. Ahora son las 00:31:32.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi