- Dec
- 236
- 2
Here is what I have setup:
Sets loaded using "set /r":
jp="C:\Documents and Settings\cgunhouse\My Documents\JPSoft"
jpB="C:\Documents and Settings\cgunhouse\My Documents\JPSoft\Batches"
jpS="C:\Documents and Settings\cgunhouse\My Documents\JPSoft\StartUp"
Aliases loaded using "alias /r":
jp:=%jp
jp=pushd %jp
jpb=pushd %jpb
jpb:=%jpb
jps=pushd %jps
jps:=%jps
edit1="%ProgramFiles%\IDM Computer Solutions\UltraEdit\Uedit32.exe"
edit2="%ProgramFiles%\IDM Computer Solutions\UltraEdit\Uedit32.exe" %@truename[%1]
Typed at command line:
edit1 jpb:\mailzipjob.btm
Command line parsed as:
"C:\Program Files\IDM Computer Solutions\UltraEdit\Uedit32.exe" jpb:\mailzipjob.btm
Editor tries to load:
C:\Documents and Settings\cgunhouse\Application Data\IDMComp\UltraEdit\jpb:\mailzipjob.btm
FILE NOT LOADED
Typed at command line:
edit2 jpb:\mailzipjob.btm
Command line parsed as:
"C:\Program Files\IDM Computer Solutions\UltraEdit\Uedit32.exe" C:\Documents and Settings\cgunhouse\My Documents\JPSoft\Batches\mailzipjob.btm
Editor loads:
C:\Documents and Settings\cgunhouse\My Documents\JPSoft\Batches\mailzipjob.btm
Now the question, is there a way to expand the directory alias before it is passed to the editor without having to use @truename?
Alias edit1 will allow me to edit more than one file on the command line but alias edit2 restricts me to one.
Craig
Sets loaded using "set /r":
jp="C:\Documents and Settings\cgunhouse\My Documents\JPSoft"
jpB="C:\Documents and Settings\cgunhouse\My Documents\JPSoft\Batches"
jpS="C:\Documents and Settings\cgunhouse\My Documents\JPSoft\StartUp"
Aliases loaded using "alias /r":
jp:=%jp
jp=pushd %jp
jpb=pushd %jpb
jpb:=%jpb
jps=pushd %jps
jps:=%jps
edit1="%ProgramFiles%\IDM Computer Solutions\UltraEdit\Uedit32.exe"
edit2="%ProgramFiles%\IDM Computer Solutions\UltraEdit\Uedit32.exe" %@truename[%1]
Typed at command line:
edit1 jpb:\mailzipjob.btm
Command line parsed as:
"C:\Program Files\IDM Computer Solutions\UltraEdit\Uedit32.exe" jpb:\mailzipjob.btm
Editor tries to load:
C:\Documents and Settings\cgunhouse\Application Data\IDMComp\UltraEdit\jpb:\mailzipjob.btm
FILE NOT LOADED
Typed at command line:
edit2 jpb:\mailzipjob.btm
Command line parsed as:
"C:\Program Files\IDM Computer Solutions\UltraEdit\Uedit32.exe" C:\Documents and Settings\cgunhouse\My Documents\JPSoft\Batches\mailzipjob.btm
Editor loads:
C:\Documents and Settings\cgunhouse\My Documents\JPSoft\Batches\mailzipjob.btm
Now the question, is there a way to expand the directory alias before it is passed to the editor without having to use @truename?
Alias edit1 will allow me to edit more than one file on the command line but alias edit2 restricts me to one.
Craig