Find Jobs
Hire Freelancers

Create Windows Batch Files to Purge Old Folders and Old Data

$10-30 USD

Ukończony
Opublikowano ponad 10 lat temu

$10-30 USD

Płatne przy odbiorze
We need two windows batch files to be developed that will purge old folders, and old data. Script 1: Script 1 will take as input a parameter that will indicate a list of folder paths: For example: [login to view URL] “F:\CLIENT\XML_OUT, F:\CLIENT\EXCEPTION, F:\POST” The script will evaluate each sub folder within the folder paths passed, and will remove any subfolders with a date older than five (5) days from the date and time the script was executed. Script 2: Script 1 will take as input a parameter that will indicate a list of folder paths: For example: [login to view URL] “G:\Navaera On Demand\data\ENVIEW_HOME\EVT_OUT, G:\Navaera On Demand\data\ENVIEW_HOME\LOGS” The script will evaluate each file within the folder paths passed, and will remove any files with a date older than five (5) days from the date and time the script was executed.
Identyfikator projektu: 5319934

Informację o projekcie

1 oferta
Zdalny projekt
Aktywny 10 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
Hi! I've written the script for the second case. The problem in your request is that it's hard to parse input parameters. I suggest to use the name of file as input parameter and you will specify the list of folders in it one per line. Works like a charm! Have a look: [login to view URL] ::------code----- @echo off for /f %%i in ([login to view URL]) do ( echo "Cleaning %%i..." Forfiles -p %%i -s -m *.* -d -5 -c "cmd /c del /q @path" ) [login to view URL] r:\temp\deletefiles\testfiles r:\temp\deletefiles\testfiles2 r:\temp\deletefiles\testfiles3 I'll send you the second one after milestone be released. Thanks!
$45 USD w 1 dzień
4,9 (8 opinii)
3,3
3,3

O kliencie

Flaga UNITED STATES
SCOTTSDALE, United States
5,0
110
Zweryfikowana metoda płatności
Członek od lip 10, 2006

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.