Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2314

Variable in Copy-item verwenden

$
0
0

hallo zusammen

eigentlich zwei Fragen: wie kann man Variable oder auch die typischen %USERPROFILE%\Desktop in copy befehlen verwenden?

get-date (Powershell Objekt) geht zb. auch nicht  auch nicht mit get-date.tostring()

$a = (get-date -Format YYYYMMDD)
$a = a$ + ".txt"
Copy-Item c:\temp\test.txt -Destination $a


CH



Viewing all articles
Browse latest Browse all 2314


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>