What are some ZENworks variables that can be used with Macros in ZENworks?
(Last modified: 21Jan2003)
This document (10015287) is provided subject to the disclaimer at the end of this document.
goal
What are some ZENworks variables that can be used with Macros in ZENworks?
fact
Novell Application Launcher (NAL) 3.0
Novell ZENworks for Desktops 2
Formerly TID 2946481
fix
SnapShot default generated Variables (Macro's)
SHORT_TARGET_PATH Destination location where the files are to be copied to in eight character format, i.e C:\Progra~1\MSOffice TARGET_PATH Destination location where the files are to be copies to in long file format, i.e C:\Program Files\MSOffice SOURCE_PATH Location where the files are to be copied from, i.e \\server_name\volume_name\file_location
NetWare Variables,
%CN% Users full login name.
%FILE_SERVER% NetWare server name that they are attached too.
%NETWORK_ADDRESS% IPX external network number of the cable segment.
%MACHINE% Type of computer, i.e IBM_PC
%OS_VERSION% Operation system version
%P_STATION% Workstation node number (12-digit hexadecimal)
%STATION% Workstation connection number as it appears in Monitor
%DAY% Day number (0 through to 31)
%DAY_OF_WEEK% Day of week (Monday, Tuesday, etc)
%MONTH% Month number (0 through to 12)
%MONTH_NAME% Month name (January, February, etc)
%NDAY_OF_WEEK% Weekday number (I through to 7, 1=Sunday)
%SHORT_YEAR% Last two digits of the year (97, 98, 99, etc)
%YEAR% All four digits of the year (1997, 1998, 1999, etc)
%AM_PM% Day or night (AM or PM)
%GREETING_TIME% Time of day (morning, afternoon, or evening)
%HOUR% Hour (12-hour scale, 1 through to 12)
%HOUR24% Hour (24-hour scale, 00 through to 24)
%MINUTE% Minute (00 through to59)
%SECOND% Second (00 through to 59)
Microsoft Variables,
%SYSTEMROOT% Windows system directory i.e C:\WinNT
%SYSTEMDRIVE% Windows root drive i.e C:
%*WINSYSDIR% Windows System32 directory i.e C:\WinNT\System32
%*WINSYS16DIR% Windows System directory i.e C:\WinNT\System
%*WINDISK% Windows root drive i.e C:
%*WINDIR% Windows directory i.e C:\Windows
%TEMP% Temporary Directory i.e C:\Temp
%TMP% Temporary Directory i.e C:\Temp
%HOMEDRIVE% The users local workstation drive letter connected to the users home directory, i.e. H:
%HOMEPATH% The full path of the users home directory, i.e. \\server_name\Users\user_name
%HOMESHARE% If a share is set up on the users home directory then this variable will present the name.
%OS% The operating system of the users workstation, i.e. Windows_NT
%USERDOMAIN% The domain or workstation containing the users account.
%USERNAME% The users account name, Windows NT only.
%ComputerName% Computer"s identification name.
%USERPROFILE% This returns the %SYSTEMROOT% instead of the actual
%USERPROFILE%, use the %*DESKTOP% instead, this will point to the desktop.
You can at any stage generate you own variables and place them as required through your application object configuration, for example you have generated a Microsoft Word installation application and customized it by creating a macro call AUTO_STORE with a value of C:\TEMP\OFFICE\ . Next change the DEFAULT SAVE registry key value to the macro AUTO_STORE
For more info on those variables, open the APPSNAP.HLP file (located in SYS:PUBLIC\SNAPSHOT\NLS\ENGLISH) and look into the index for the"Special Windows Macros" topic.
For more information on NDS Attribute Macros, inside an Application object hit F1 for help and search for "NDS Attribute Macros", which gives examples of using these with application objects. To test these create a simple application object with an .ini file that has the attributes in it that you want to test..
document
Document Title: | What are some ZENworks variables that can be used with Macros in ZENworks? |
Document ID: | 10015287 |
Solution ID: | 4.0.38017062.2294632 |
Creation Date: | 27Aug1999 |
Modified Date: | 21Jan2003 |
Novell Product Class: | Management Products NetWare |
disclaimer
The Origin of this information may be internal or external to Novell. Novell makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. Novell makes no explicit or implied claims to the validity of this information.
Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.