Recent content by samintz

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  1. samintz

    Associate file by name rather than extension?

    Short answer: no Long answer: Create a script that does the magic parsing. Associate .TXT files with a new ftype and invoke that ftype by running TCC and your script and pass in the file name. Then have the script invoke either the current TXT file handler or Excel. This is untested: ftype...
  2. samintz

    ANSI misbehavior?????

    I ran into a similarly strange issue back in November (I think). After I rebooted my PC, the issue disappeared so I never reported it.
  3. samintz

    PSHELL's CWD

    Is this behavior expected? I.e. the default directory changes from 'C:\temp' to 'C:\users\mintz\documents' for the PSHELL command. [C:\Temp] $ pshell /s "pwd" Path ---- C:\Users\mintz\Documents [C:\Temp] $ powershell -command "PWD" Path ---- C:\Temp
  4. samintz

    Select-String with Context

    Even though I am in the same directory as foo.txt, it turns out I need to specify the full path to foo.txt in order for the PSHELL version to work. $ pshell /s "type c:\temp\foo.txt | Select-String -Pattern 'Sun in London - Next 7 Days' -context 0,11" > Sun in London - Next 7 Days...
  5. samintz

    Select-String with Context

    The PSHELL command doesn't return anything for me. $ pshell /s "type foo.txt | Select-String -Pattern 'Sun in London - Next 7 Days' -context 0,11" $ powershell -command "$f = type foo.txt | Select-String -Pattern 'Sun in London - Next 7 Days' -context 0,11; $f" > Sun in London - Next 7 Days...
  6. samintz

    How do I fix file association?

    I figured it out. You have to go to Settings -> Apps -> Default Apps -> Choose default apps by file type. Then I was able to set the default to Adobe Reader DC. After I did that, the Change button shows up when you right-click a PDF file and select Properties. Before, there was no Change...
  7. samintz

    How do I fix file association?

    I have something weird going on with my Win10 PC. $ assoc .pdf .pdf=AcroExch.Document.DC $ ftype AcroExch.Document.DC AcroExch.Document.DC="C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" "%1" $ C:\Users\mintz\Desktop\Using_SQLite.pdf TCC: (Sys)...
  8. samintz

    "less" program that works in TC 18

    FWIW - I am running Win10 and TC 22. And the LESS.EXE that is bundled with GIT works without any issues.
  9. samintz

    "less" program that works in TC 18

    Since VIEW is built-in to TC, why not use it instead? You can easily create an alias named LESS that invokes VIEW.
  10. samintz

    Utilisation de la comande LOADBTM

    This whole thread started with you using BTM2EXE. IExpress.exe is part of Windows and allows you to package up files and install them elsewhere. The idea behind BTM2EXE is that you could create a BTM script, then package it together with TCC/LE or TCC/RT and have the script automatically...
  11. samintz

    Utilisation de la comande LOADBTM

    It sounds like you do not have BTM files associated with TCCLE. The full installer should set that up for you. Since you are using IExpress instead, you will need to perform the associations yourself. Your full install should have a file named tccbatch.btm. Look it over to see how it works.
  12. samintz

    Utilisation de la comande LOADBTM

    You install TCCLE using IExpress and when your user tries to run your BTM file it doesn't work? Are they running it from within TCCLE or are they clicking on it in Explorer?
  13. samintz

    Utilisation de la comande LOADBTM

    Post a copy of your SED file and a directory listing of the directory you are packaging up.
  14. samintz

    Utilisation de la comande LOADBTM

    I was using FOO.BTM as an example. I have no idea what your script is named. Try running IExpress directly and manually enter all the dialog prompts.
  15. samintz

    Utilisation de la comande LOADBTM

    I assume you have TCC.EXE and FOO.BTM. And you want to run IExpress to create FOO.EXE, such that when FOO.EXE is run, TCC.EXE and FOO.BTM are extracted and then TCC / c FOO.BTM is run. Is that correct?