By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!C:\>alias *:
desk:=%@shfolder[16]\
dl:=%userprofile\downloads\
docs:=%@shfolder[5]\
etc:=%systemroot\system32\drivers\etc\
gd:=%userprofile\google drive\
progs:=%@shfolder[38]\
shell:=%@path[%_cmdspec]
sys:=%@shfolder[37]\
user:=%userprofile\
win:=%@shfolder[36]\
C:\>
alias tccrt='/mnt/c/program\ files/jpsoft/tcc_rt_27/tcc.exe /I /C'
jlc@DESKTOP-H2JFFTF:/mnt/e/Utils$ alias tccrt
alias tccrt='/mnt/c/program\ files/jpsoft/tcc_rt_27/tcc.exe /I /C'
jlc@DESKTOP-H2JFFTF:/mnt/e/Utils$ tccrt echo %_isodate
2021-01-06
jlc@DESKTOP-H2JFFTF:/mnt/e/Utils$
This DEFINITELY needs to be posted somewhere on the website, not just buried in a response an unrelated topic!Not sure if this will be of any benefit, but I have tcc.exe as an alias in my Bash Profile;Code:alias tccrt='/mnt/c/program\ files/jpsoft/tcc_rt_27/tcc.exe /I /C'
That way, I can run a TCC command while in bash;Code:jlc@DESKTOP-H2JFFTF:/mnt/e/Utils$ alias tccrt alias tccrt='/mnt/c/program\ files/jpsoft/tcc_rt_27/tcc.exe /I /C' jlc@DESKTOP-H2JFFTF:/mnt/e/Utils$ tccrt echo %_isodate 2021-01-06 jlc@DESKTOP-H2JFFTF:/mnt/e/Utils$
Joe
:: set folders for windows 2k, xp [0config.cmd]
set zreg=Software\Wendy\Folders
...
reg add HKLM\%zreg% /f /v appdir /d %zwin%
reg add HKLM\%zreg% /f /v appdata /d %zapp%
reg add HKLM\%zreg% /f /v batch /d %zdir%\cdata\batch
reg add HKLM\%zreg% /f /v books /d %zbook%
@echo off
:: cd shell folder.
if /i "%1"=="/?" goto :ttyhelp
if /i "%1"=="" goto :ttyhelp
set zdir=
set zshf=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
set zapp=Software\Microsoft\Windows\CurrentVersion\App Paths
if /i "%1"=="/m" goto :hklm
if /i "%1"=="/u" goto :hkcu
if /i "%1"=="/w" goto :hkwe
if /i "%1"=="/i" goto :image
if /i "%1"=="/a" goto :happ
set zcmd=chdir
set zhere=%*
if "%1"=="/o" set zcmd=open
if "%1"=="/o" set zhere=%zhere:~3%
conset /q /k zdir=HKLM\%zshf%\%zhere%
if not "%zdir%"=="" goto :doit
conset /q /k zdir=HKCU\%zshf%\%zhere%
if not "%zdir%"=="" goto :doit
conset /q /k zdir=HKLM\Software\Wendy\Folders\%zhere%
if not "%zdir%"=="" goto :doit
goto :end
:hklm
shelexec reg:hklm\%zshf%
goto :end
:hkcu
shelexec reg:hkcu\%zshf%
goto :end
:hkwe
shelexec reg:hklm\software\wendy\folders
goto :end
:happ
shelexec reg:hklm\%zapp%
goto :end
:image
set zdir=Microsoft\Windows NT\CurrentVersion\Image File Execution Options
shelexec reg:hklm\software\%zdir%
goto :end
:ttyhelp
echo CDF changes to a directory stored in registry, or shell folder.
echo.
echo /o Open the named folder in explorer.
echo /m Display the shell folders in the machine tree
echo /u Display the shell folders in the user tree
echo /w Display the folders in HKLM\Software\Wendy\Folders
echo /i Display the image settings tree for hacks etc.
echo.
echo name Changes to first instance of name in the above order.
goto :end
:dexe
goto :end
:doit
set zcxm=
if %zcmd%==chdir cd /d %zdir%
if %zcmd%==open shelexec %zdir%
:end
set zdir=