nsp wrote:i did a small fix
Thanks. Fix confirmed!
If you want to get rid of " you can use the q option
I had tried it before and always got an error. I hadn't realized that it can't be entered as
-q -I file.inibut must be entered as
-qI file.ini.
Perhaps this question has been asked before. Is it possible to change the command processor that TCBL launches once the script is created? I see that right now TCBL starts
%CmdSpec% /c %TEMP%\tcbl_(random).bat. I see no reason why the script building engine needs to be restricted to CMD statements, it could create any kind of scripts, for instance VBS. At which point TCBL could start the vbs script automatically if TCBL allowed for specifying the command-line to start and the script filename extension.
Perhaps it would be enough to add a tcblrun.bat option - similar to tcbledit.bat:
Code: Select all
REM in tcblrun.bat - start a vbs script
start %~dpn1.vbs
No, this is not quite enough yet, because I still haven't told TCBL to name the script file with extension .vbs. Still, it seems that this opportunity isn't too far away, what do you think?
EDIT:
Very funny, I seemed to remember that perhaps I had had something to do with regard to tcbledit.bat, so I went back into this thread and found, on August 29, 2006, that you actually added tcbledit.bat in response to a request of mine, thanks again!
One more request, it would be useful if you could add an internal variable pointing to TCBL start folder. This way I could write scripts that correctly reference that folder even if they are not started from TC.
Using %%commander_path%%\TCBL in TC's parameters line isn't sufficient because the environment variable isn't expanded until the batch file runs, which means that if the batch file was started outside of TC %commander_path% wouldn't be defined.
EDIT 2:
I discovered a work-around. I can use $0 from within an ini section to get the full path of TCBL.exe - and from there the folder path. This isn't documented in the readme file. Still, a direct internal variable would be preferable, try this:
Code: Select all
; in tcbl.ini
pre=set myfolder=$0
pre=set myfolder=%myfolder%\..
pre=echo %myfolder%
pre=DIR /w "%myfolder%"
pre=pause
pre=exit
While the resulting batch file does work as intended, %myfolder% is set to the invalid path
...\TCBL\tcbl.exe\.. DIR accepts it even if it's invalid, but not all programs - or alternate script processors - may.