lib/Fs/Tmp.ps1
function Tmp-Fdr ($fdr){$p=Jn-Seg $_tmpPth,$fdr,(Tmp-Nm);Ens-Pth $p;$p} function Tmp-Fn ($ext){(Tmp-Nm)+$ext } function Tmp-Ft ($fdr){(Tmp-Pth $fdr)+(Tmp-Fn ".txt")} function Tmp-Fx ($fdr){(Tmp-Pth $fdr)+(Tmp-Fn ".xlsx")} function Tmp-Nm {"T"+([DateTime]::Now.ToString("yyyy_MM_dd_HHmmss"))} function Tmp-Pth ($fdr){Jn-Seg $_tmpPth,$fdr } function Brw-TmpPth {Brw-Pth $_tmpPth} function Brw {Brw-Ft(Wrt-Tmp $input)} function Wrt-Tmp ($obj){$t=Tmp-Ft;Wrt-Obj $obj $t;$t} function Clr-TmpPth {Clr-Pth $_tmpPth } $local:_tmpPth = $env:Tmp + '\PowerShell\' if(!(Test-Path $_tmpPth)){md $_tmpPth} |