Recent content by Joe Caverly

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

    @REXX

    c:\users\jlc\utils>echo %@rexx[return words('The quick brown fox')] 4 c:\users\jlc\utils>echo %@rexx[=words('The quick brown fox')] 4 Just need updates to the help file. Thanks for the clarification. Joe
  2. Joe Caverly

    @REXX

    c:\users\jlc\utils>rexx <<< words('The quick brown fox') TCC: Unknown command "4" c:\users\jlc\utils>rexx <<< say(words('The quick brown fox')) 4 c:\users\jlc\utils>echo %@execstr[rexx <<< say(words('The quick brown fox'))] 4 Joe
  3. Joe Caverly

    PSHELL /C

    I have not had the need for a persistent history in PowerShell, but the solution you are using seems to do the job. Joe
  4. Joe Caverly

    @REXX

    Process Explorer shows that the REGINA.DLL is in the tcc.exe process; c:\users\jlc\utils>type test.rexx Say('Test') c:\users\jlc\utils>rexx test.rexx Test c:\users\jlc\utils>test.rexx Test Joe
  5. Joe Caverly

    Running GW-BASIC in TCC

    PC-BASIC looks just like the original GW-BASIC, but updated for 2018. It can be run in a TCC window by;pcbasic.com -b PC-BASIC has many settings and options http://robhagemans.github.io/pcbasic/doc/ PC-BASIC is available from http://robhagemans.github.io/pcbasic/ Joe
  6. Joe Caverly

    @REXX

    Why am I getting the;TCC: Unknown command "4" ECHO is OFF as shown below? The output should just be 4. I tried the example from the help file;c:\program files\rexx.org\regina>echo %@rexx[ = 3 * 4 ] TCC: (Sys) The parameter is incorrect. "%@rexx[ = 3 * 4 ]" but it does not work as it should...
  7. Joe Caverly

    All Those Years Ago

    Demonstration of how to get date properties using PowerShell, based on the date x years ago, or x years from now. @setlocal @echo off function AddYears=`%@pshell[$d = Get-Date; $d.AddYears(%1)]` function AddYears.DayOfWeek=`%@pshell[$d = Get-Date; $d.AddYears(%1).DayOfWeek]` function...
  8. Joe Caverly

    PSHELL /C

    To me, PSHELL /C is like doing a SETLOCAL from TCC. Any and all variables that I create are removed when I do an ENDLOCAL from TCC. PSHELL /C removes any variables that I have created. PowerShell will not allow a class added using add-type to be removed from memory. You have to exit...
  9. Joe Caverly

    PSHELL /C

    The NSILP_PowerShell.x64.dll file has the following;PSHostAddFunction 0x00000001800030f4 0x000030f4 1 (0x1) NSILP_PowerShell.x64.dll C:\Program Files\JPSoft\TCMD22\NSILP_PowerShell.x64.dll Exported Function PSHostAddVariable 0x0000000180003094 0x00003094 2 (0x2)...
  10. Joe Caverly

    PSHELL /C

    c:\users\jlc\documents\vb.net>ver TCC 22.00.38 x64 Windows 7 [Version 6.1.7601] A simple class example;' File: Add.vb Public Class AddClass Public Shared Function Add(ByVal i As Long, ByVal j As Long) As Long Return i + j End Function End Class Starting...
  11. Joe Caverly

    What happens to PSHELL after 20 seconds?

    @vefatica , I have been attempting to generate the error again, but I cannot. I have modified the .BTM as follows;@setlocal @echo off ver do kount = 1 to 3 *pshell /s "[System.IO.Directory]::GetFiles('\\.\\pipe\\')" > %_datetime.txt *pshell /s "%@pshell[set-location '%_cwd'] echo...
  12. Joe Caverly

    What happens to PSHELL after 20 seconds?

    On my Windows 7 64-bit system, I have;PS C:\utils> $PSVersionTable Name Value ---- ----- PSVersion 5.1.14409.1005 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion...
  13. Joe Caverly

    What happens to PSHELL after 20 seconds?

    When I run the following;@setlocal @echo off ver do kount = 1 to 3 *pshell /s "%@pshell[set-location '%_cwd'] echo %_time" delay 25 enddo endlocal ...it returns;c:\users\jlc\utils>test TCC 22.00.38 x64 Windows 7 [Version 6.1.7601] 04:48:52 04:49:17 04:49:43 On the second...
  14. Joe Caverly

    .PS1 script does not work with PSHELL

    Vince;alias pshell `*pshell %@pshell[set-location %_cwd]` ...that alias is a keeper. Many thanks! Joe
  15. Joe Caverly

    .PS1 script does not work with PSHELL

    This also works;c:\users\jlc\utils>pshell /s "cd %_cwd" & pshell test.ps1 The quick brown Fox jumped over the lazy dog Joe