Quantcast
Viewing latest article 9
Browse Latest Browse All 20

TCC and PowerShell shared environment

I discovered something by accident today.

I am using;
Code:
c:\users\jlc\utils>ver

TCC  24.02.46 x64   Windows 7 [Version 6.1.7601]

In my Powershell profile, C:\Users\jlc\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1, I have, for example, the following function;
Code:
function CDate
{
  param ([string]$theDate)
  $bdate = Get-Date -format D $theDate
  $env:cdate=$bdate
}

If I do the following from TCC;
Code:
c:\users\jlc\utils>pshell /c...

Read more

Viewing latest article 9
Browse Latest Browse All 20

Trending Articles