G
G
Gunter051 Rublev2019-04-19 20:14:42
PowerShell
Gunter051 Rublev, 2019-04-19 20:14:42

How to make a Powershell script?

The task is to make a Powershell v.2 script that would transfer from one PC to another PC the most recently created file in a folder with a specific extension, for example txt, and on the other PC the previous file would be overwritten and some message would appear.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
moropsk, 2019-04-19
@moropsk

If it's on, you can still use copymik
https://www.superbasis.de/copymik/index.htm#rus

Z
ZIK1337, 2019-04-20
@ZIK1337

I can suggest how to get the name of the most recently created file in a folder:

Get-ChildItem C:\Windows | Where-Object {$_.name -like "*.txt"}  | Sort-Object CreationTime | Select-Object -Last 1 | ft Name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question