- Dec
- 238
- 2
I've used JP Software products for a very long time but am new to TCC starting with version 11. I was able to go on using 4NT for the longest time, but a requirement to change to Win 7 at work pretty well made that a thing of the past and I'm now a registered TC/TCC user.
The first batch file I transferred over from 4NT to TCC is failing. It's an oldie and a simple one -- purpose: copy paths to the clipboard. Like this:
It works fine under 4NT. There is no screen display and the desired information is copied to/appended to the clipboard.
But the response from TCC is:
TCC: (Sys) C:\batch\clipit.btm [7] The operation completed successfully.
"C:\Users\marst\AppData\Local\Temp\COUT6ac.JPS"
Line 7 in the actual .btm file is the one reading "echo %@full[%_thisfile]>>clip:"
And afterward: there's nothing in the clipboard at all.
Ok, what's up here? Why is there an announcement that the operation completed successfully? (no such message appears under 4NT) And, why nothing in the clipboard?
If I type the following at the TCC prompt:
It does exactly what I'm after.
In the failing .btm file, if in the line containing ">>clip:" above, I change it to ">clip:" (only one ">"), it does work. But then of course it copies only a single fully qualified path to the clipboard, which is NOT what I'm after.
What am I doing wrong here? (It sure seems right enough, per the old 4NT way of doing things. Is there some radically different way in which this should be done under TCC?)
The first batch file I transferred over from 4NT to TCC is failing. It's an oldie and a simple one -- purpose: copy paths to the clipboard. Like this:
Code:
>clip:
:: Ensure nothing's in the clipboard. Then:
do _thisfile in %*
echo %@full[%_thisfile]>>clip:
enddo
It works fine under 4NT. There is no screen display and the desired information is copied to/appended to the clipboard.
But the response from TCC is:
TCC: (Sys) C:\batch\clipit.btm [7] The operation completed successfully.
"C:\Users\marst\AppData\Local\Temp\COUT6ac.JPS"
Line 7 in the actual .btm file is the one reading "echo %@full[%_thisfile]>>clip:"
And afterward: there's nothing in the clipboard at all.
Ok, what's up here? Why is there an announcement that the operation completed successfully? (no such message appears under 4NT) And, why nothing in the clipboard?
If I type the following at the TCC prompt:
Code:
echo [EMAIL="%@full%5Bfilename.txt"]%@full[filename.txt[/EMAIL]] > clip:
In the failing .btm file, if in the line containing ">>clip:" above, I change it to ">clip:" (only one ">"), it does work. But then of course it copies only a single fully qualified path to the clipboard, which is NOT what I'm after.
What am I doing wrong here? (It sure seems right enough, per the old 4NT way of doing things. Is there some radically different way in which this should be done under TCC?)