ExecutionPolicy ByPass allows you to run PowerShell without needing to modify the global policy, which is there to prevent people accidentally running scripts. %~1 is the path of the file dropped onto the batch without quotes.ĬHCP 65001 > nul sets characters to UTF-8 and swallows the output. %~dp0 is the current directory of the batch file. I think the PowerShell is readable, so will just explain the batch speak: Then here is example usage within my 'CONVERT.BAT' batch file: %~dp0\ffmpeg -i "%~1" ACTION "%~1-output.mp4"ĬHCP 65001 > nul & PowerShell -ExecutionPolicy ByPass -File "%~dp0\CLONE-FILE-DATE.PS1" "%~1" "%~1-output.mp4" (GI -LiteralPath $TargetPath).LastWriteTime = (GI -LiteralPath $SourcePath).LastWriteTime (GI -LiteralPath $TargetPath).CreationTime = (GI -LiteralPath $SourcePath).CreationTime My solution was make the 'touch' part a seperate PowerShell script which I called 'CLONE-FILE-DATE.ps1' and it contains: param This seemed simple at first until you find batch files are terrible at handling unicode file names, in-line PowerShell messes up with file name symbols, and double escaping them is a nightmare. So 'drag and drop' video file on to batch file, FFMPEG runs, then 'Date Created' and 'Date Modified' from the input file gets copied to the output file. Free 21-day trial available.I wanted the 'touch' feature of cloning / duplicating the file dates from another file, natively, and be usable from a batch file. Create custom batch scripts, list Amazon S3 files or entire folders, filter them with conditions, query, change object metadata and ACLs and much more. Quickly upload only new or changed file using multipart uploads and concurrent threads. Easily upload, query, backup files and folders to Amazon S3 storage, based upon multiple flexible criteria. It couldn't be easier!Īre you looking for a simple way to backup your files to Amazon S3? Try S3Express S3 Command Line Utility for Windows. ViceVersa PRO will automatically only copy files that are new or have changed since the last time it run: so you can have an always up-to-date, exact replica of all your important files, file by file and folder by folder. A Better Finder Attributes is a powerful and versatile file management tool designed to empower Mac users with the ability to easily and efficiently manipulate file attributes. as soon as changes to files are detected). when connected to the network or when a USB drive is inserted) or even in real-time (i.e. every X hours or at an established time during the day), event-driven (e.g. as requested by the user), scheduled (e.g. The copy can be performed on-demand (i.e. USB Drive, NAS), another hard-disk, or another computer (desktop, server, workstations over LAN, VPN). Copy thousands of digital photos, documents and files that you need to backup or mirror to an external media (e.g. With ViceVersa PRO you can copy efficiently multiple files between folders, disks, computers. Try also ViceVersa PRO, easy to use file copy software (a.k.a. I have A Better Finder Attributes, but it doesnt have the 1 feature I really need, namely the ability to add some time (a few seconds would do or a day or whatever) to the date created/modified for the next file in the batch. If you have a suggestion for a new feature, get in touch and it could appear in a future release of the software! I need an app to change the attributes of a whole batch of files, specifically the date created/modified. As such, it is continually being enhanced and improved.Īs well as being " recommended" by a number of web sites, Bulk Rename Utility has also appeared on many magazine cover-discs, from Brazil to Sweden.īulk Rename Utility is compatible with all versions of Windows, e.g. Most of the features have originated from users' suggestions. It has a large base of regular users and an active User's Forum. The software gets downloaded very frequently. and it can batch rename 1,000s of files in seconds. It started as a freeware Visual Basic tool, but as its popularity has grown it has been completely rewritten in C++ to be robust and lightweight - and very, very fast! It can easily handle folders/discs containing well over 100,000 entries. Renaming multiple files and/or multiple folders has never been easier! It has a small memory footprint so it can be left running all the time without consuming all your memory. Bulk Rename Utility is an easy to use file rename program (a.k.a.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |