O
O
oleksandr ihnatov2020-07-14 16:25:54
Programming languages
oleksandr ihnatov, 2020-07-14 16:25:54

On what to write a script?

Good afternoon.

Every day I am faced with a repetitive operation at work: creating a large number of folders with the name of the current date. For example: '20200714'.

Idea: create a script that, when the PC is turned on, will create a folder, having the name of the current date in a pre-selected list of other folders.
When turning off the PC, I deleted this folder if this folder is empty at the time of shutdown.

Question: what language and tool to use to write such a stray?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Ronald McDonald, 2020-07-14
@Zoominger

PowerShell + Task Scheduler.

G
GavriKos, 2020-07-14
@GavriKos

Possibly a python. You can shell-script (depending on the axis).
In Windows, you can generally try a scheduler. xs

I
Ivan Shumov, 2020-07-14
@inoise

Win - powershell
Linux / Mac - shell
If you want something more powerful and versatile - Python, for example

X
xmoonlight, 2020-07-14
@xmoonlight

1. cmd/shell script
2. Or https://www.autohotkey.com
3. Or any programming language for the required OS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question