Variable used with HippoEDIT
ongoing thread ... will be formated later, and also add links to existing threads about this topic.
| | |
| - | |
| %DateTime% | should be -- 03.10.2009 22:03:07 -- i think, but gives only 22:03:07 |
| - | |
| %Date% | current date => 03.10.2009 |
| - | |
| %DateTime% | current time => 22:03:07 |
| - | |
| %Year% | current year => 2009 |
| - | |
| %Month% | current month => 10 |
| - | |
| %Day% | current day => 04 |
| - | |
| %FileDate% | Last modification date of current document |
| - | |
| %FileTime% | Last modification time of current document |
| - | |
| %CurrentWord% | current word under cursor |
| | Example: anyword |
| - | |
| %CurrentLine% | current number of the line where the cursor is in |
| | Example: 12 |
| - | |
| %CurrentColumn% | current number of the column where the cursor is in |
| | Example: 72 |
| - | |
| %Clipboard% | current content of the clipboard |
| | Example: example clipboard content |
| - | |
| %[ ]% | returns an Registry Value |
| Example of use: |
| %[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE]% |
| Returns: C:\Programme\Internet Explorer\IEXPLORE.EXE |
| - | |
| %SelectedText% | current selected text |
| | Example: selected word, words, line or lines |
| - | |
| %Document% | name of current document |
| | Example: filename.ext |
| - | |
| %FileNameWOExt% | base name of current document without the extension |
| | Example: filename |
| - | |
| %FileName% | name of current document incl. the path %FileDir% |
| | Example: X:\folder\path\filename.ext |
| - | |
| %FileDir% | Path of current file |
| | Example: X:\folder\path |
| - | |
| %OpenFiles% | insert an space separated string with currently open files at the current place into the document or given as parameter to an external tool |
| | Example: X:\folder\filename.ext "Y:\folder name\file name.ext" Z:\test\a\b\file.ext |
| - | |
| %|% | to place the cursor at an wished position |
| | Example: after inserting the template FOR x = 1 TO %|% the cursor is placed on the place of %|% |
| - | |
| %Variable name% | named 'Interactive' in context menu => prompt the user with an dialog to insert an string to be inserted at the current place into the document or given as parameter to an external tool |
| Example of use: after inserting an template like %Test% user is prompted by an dialog labeled with 'Test' where he can enter an string |
| - | |
| %InteractiveFile% | prompt the user with an dialog to select a file. The path and file name will be inserted at the current place into the document or given as parameter to an external tool |
| - | |
| %InteractiveDir% | prompt the user with an dialog to select an directory. This path will be inserted at the current place into the document or given as parameter to an external tool |
| - | |
| %OpenFilesInteractive% | prompt the user with an list of currently opened files. The user can select one or more to feed them as parameter to an external tool |
| - | |
| %AppDir% | current path to the folder with the HippoEdit.exe |
| | Example: X:\path\HippoEDIT |
| - | |
| %AppDrive% | current drive which holds the folder with the HippoEdit.exe |
| | Example: X: |
| - | |
| %AppDataDir% | current path to the HippoEdit data folder |
| | Example: X:\path\HippoEDIT\Data |
| - | |
| %% | the symbol % itself |
| | Example: if you want to insert an %-sign itself. F.ex. for *.CMD Batch files, if you want to create an template like ECHO %1 %2 you have to write this as ECHO %%1 %%2 |
| - | |
| | |
| - | |
| | |
| - | |
| | |
| - | |
%ProjectFiles% Project Files
%ProjectDir% Project work dir
%MainFile%Project Main File Name
%MainFilePath% Project Main File Path
%MainFileDir%Main Project File Directory
%ProjectFilesInteractive%
Environment Vars from your computer
%ComSpec% => C:\WINDOWS\system32\cmd.exe
%FP_NO_HOST_CHECK%
%NUMBER_OF_PROCESSORS%
%OS%
%Path%
%PATHEXT%
%PROCESSOR_xxx%
%TEMP% => C:\DOKUME~1\<CurrentUserName>\LOKALE~1\Temp
%TMP% => usely the same as TEMP
%windir% => C:\WINDOWS
You can test this env vars in an DOS-Box with the echo-command like:
C:\>echo %ComSpec%
or by using the command set:
C:\>set
then you will find more env vars to use with HippoEDIT:
ALLUSERSPROFILE=C:\Dokumente und Einstellungen\All Users
APPDATA=C:\Dokumente und Einstellungen\<CurrentUserName>\Anwendungsdaten
CommonProgramFiles=C:\Programme\Gemeinsame Dateien
COMPUTERNAME=myPC
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Dokumente und Einstellungen\<CurrentUserName>
LOGONSERVER=\\myPC
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Python31
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0905
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOKUME~1\<CurrentUserName>\LOKALE~1\Temp
TMP=C:\DOKUME~1\<CurrentUserName>\LOKALE~1\Temp
USERDOMAIN=myPC
USERNAME=<CurrentUserName>
USERPROFILE=C:\Dokumente und Einstellungen\<CurrentUserName>
windir=C:\WINDOWS
Happy HippoEDITing

Find me:
var
vars
variable
variables
variablen