ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] Creating side-car files   [Help!]

By: Ben Kent       
Date: Sep 06,2023 at 10:59
In Response to: [Help!] Creating side-car files (John Leslie)

> Is there any easy way to create an empty file with the same name
> (but different extension) to an existing file?
>
> I ask as my old video viewer used to make a sidecar file (actually with
> resume info in it) when I watched videos I'd shot, so it was easy to see
> which ones I'd looked at from possibly quite a bunch of new ones. The
> new viewer doesn't, but changing attributes is no use as my video editor
> won't show them, but it would show a sidecar file.


John


If you have the file highlighted in ZTree, then eXecute this
copy nul %4.ext



In a CMD script with the file passed as a parameter
copy nul "%~dpn1.ext"



Warning: will silently overwrite existing files



Ben

100 views      
 

Messages in this Thread

 
96,456 Postings in 12,197 Threads, 350 registered users, 131 users online (0 registered, 131 guests)
Index | Admin contact |   Forum Time: Sep 30, 2023 - 5:56 am UTC  |  Hits:58,243,940  (8,687 Today )
RSS Feed