Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Компьютеры » Программы » Командная строка, батники, сценарии (bat, cmd)

Модерирует : gyra, Maz

articlebot (21-06-2016 11:40): Следующая часть - Командная строка, батники, сценарии (bat, cmd)  Версия для печати • ПодписатьсяДобавить в закладки
На первую страницук этому сообщениюк последнему сообщению

   

mugil_cephalus

Advanced Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Simple example - set all file creation dates to Christmas day:
 
dirdate -CREATION date=12/25/2000 time=12:00:00 *.*Simple example 2 - add 10 minutes to file modification dates:
 
dirdate -MODIFIED ADD=6000000000 *.*Simple example 3 - reset folder dates to the date of the oldest file (e.g. after you copy photos to a new computer)
 
dirdate -r -diroldest "c:\My Documents\My Pictures"Simple example 4 - copy file creation dates from one set of folders to another:  
 
dirdate.exe -report -r -CREATION *.* > report.bat
 
Then just copy report.bat to the new folder and run it!Very complex example - use the following DOS .BAT command (this will NOT work from the command line) to alter the creation date of all .WAV files on drive X: to the creation date of a correspondingly-named .WMA reference file.
 
FOR %%A IN (x:\*.wav) DO dirdate -CREATION "filec=x:\%%~nA.WMA" "x:\%%~nA.wav"This example (again, only works in a batch file) sets the creation date (-CREATION) to the modified date of the reference file (FILE=)
 
FOR /R %%A IN (*.*) DO dirdate -CREATION file="%%A" "%A"DirDate runs under Microsoft® Windows® Windows 7 and x64, Vista®, Vista 64, 2008/2003 Server, XP, 2000, NT, ME, 95/98. DirDate also comes with a 16-bit version for DOS and Windows 3.1, which can be used to change folder, volume label and file entry dates, file sizes and attributes under Windows 3.1 and DOS using direct disk writes, and it is the only application that can change DOS folder dates using direct disk writes.
 
If you use RoboCopy, DirDate can be used to restore the original file created and last modified dates from RoboCopy's default date of '02.01.1980'.

Всего записей: 1072 | Зарегистр. 07-09-2009 | Отправлено: 10:59 23-06-2010 | Исправлено: mugil_cephalus, 12:12 23-06-2010
   

На первую страницук этому сообщениюк последнему сообщению

Компьютерный форум Ru.Board » Компьютеры » Программы » Командная строка, батники, сценарии (bat, cmd)
articlebot (21-06-2016 11:40): Следующая часть - Командная строка, батники, сценарии (bat, cmd)


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2024

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru