Đã hoàn thành

Very simple powershell script to zip files

Hello,

I'm a Linux guy that need a PowerShell script to do the following:

c:\PDF_XML_FILES directory has the following files in it

PS C:\PDF_XML_FILES> dir

Directory: C:\PDF_XML_FILES

Mode LastWriteTime Length Name

---- ------------- ------ ----

-a--- 6/07/2020 12:23 224848 [login to view URL]

-a--- 13/07/2020 09:07 2410 [login to view URL]

-a--- 6/07/2020 12:23 224848 [login to view URL]

-a--- 13/07/2020 09:07 2410 [login to view URL]

As you can see, each pdf file has an xml file related to it.

So I need a PowerShell script that could be executed anywhere on the server and that will:

* Loop into the C:\PDF_XML_FILES directory to list all the pdf files, and for each PDF file that it found, it will need to create an archive zip file into the C:\OUTPUT directory with the name of the pdf file without extension and with the xml and pdf files in it.

So in my example, after the execution of the power shell script, I'll need in the C:\OUTPUT directory, the following two files:

[login to view URL] (with the files [login to view URL] and [login to view URL] in it)

[login to view URL] (with the files [login to view URL] and [login to view URL] in it)

After each zip file being successfully created, the corresponding pdf and xml files will need to be move to the C:\PDF_XML_FILES\old directory.

That's it.

First come first serve, $10 for the script.

Regards,

Nicolas.

Kĩ năng: Powershell

Xem nhiều hơn: zip files perl script, php script checkbox download list zip files, php simple script uploaddownload files, powershell compress-archive not found, powershell script to zip and move files, powershell zip multiple files, powershell add files to zip, powershell script to zip and delete files, powershell 2.0 zip files, powershell zip single file, compress-archive powershell 4, powershell compress-archive delete original, powershell expand-archive, powershell zip folder and subfolders, powershell extract file from zip, best perl script zip directory files, powershell script copy files, simple php script auto index files, powershell script create files directory structure, powershell script copy files days

Về Bên Thuê:
( 1 Nhận xét ) Perwez, Belgium

ID dự án: #26826422

Được trao cho:

barmex

Hi there. Script done. Hire me and I attach it on project files. Kind regards, Alex

$10 USD trong 1 ngày
(1 Nhận xét)
0.6

2 freelancer đang chào giá trung bình $20 cho công việc này

goodwork20k

I am good in powerhsell and i can give you the script next 1 to 2 hours if you are good to award with 30$, 10$ is too low , ping me if you are good with that

$30 USD trong 1 ngày
(54 Nhận xét)
5.7