Script Request

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
stondesign
Posts: 19
Joined: 23 Oct 2018 17:28

Script Request

#1 Post by stondesign » 14 Jun 2019 06:18

I have 2 File

file.extension1
file.extension2

I would need a script that by moving over the files creates a ZIP archive with the name of the first file and that after creating the zip delete the two files I dragged over

stondesign
Posts: 19
Joined: 23 Oct 2018 17:28

Re: Script Request

#2 Post by stondesign » 20 Jun 2019 10:54

I created a solution

Code: Select all

"C:\Program Files (x86)\WinRAR\Rar.exe" a -ep1 -r %~n1.zip %1 %2 %3 %4 %5 %6 %7 %8 %9 %10
move %~n1.zip zipped-archive
del %1 %2 %3 %4

Post Reply