Link to home
Create AccountLog in
Scripting Languages

Scripting Languages

--

Questions

--

Followers

Top Experts

Avatar of m-moloney
m-moloney

script to zip files daily
I need a script to create a zip file with the hostname of the server and the date as the name of the zip file.  All the files that will be zipped are in the same directory and all have the .txt extension.  I would like it to run automatically. It would also be nice if it could delete the previously created zip file based on the date minus some number of days. I am not an expert at scripting so I am having trouble adjusting some of the scripts I have found online.

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of ColosseoColosseo🇬🇧

Could probably put something together for you.

Would need to use a sheduled task to control it if thats ok?

I assume the server has winzip on?

Scott

ASKER CERTIFIED SOLUTION
Avatar of Shift-3Shift-3🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of m-moloneym-moloney

ASKER

Thanks, I will start testing immediately!

It worked perfectly. thanks for the quick reply.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Scripting Languages

Scripting Languages

--

Questions

--

Followers

Top Experts

A scripting language is a programming language that supports scripts, programs written for a special run-time environment that automate the execution of tasks that could alternatively be executed one-by-one by a human operator. Scripting languages are often interpreted (rather than compiled). Primitives are usually the elementary tasks or API calls, and the language allows them to be combined into more complex programs. Environments that can be automated through scripting include software applications, web pages within a web browser, the shells of operating systems (OS), embedded systems, as well as numerous games. A scripting language can be viewed as a domain-specific language for a particular environment; in the case of scripting an application, this is also known as an extension language.