ZTree.com  | ZEN  | About...  

 Index   Back

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

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

> > 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

Thanks, that's great! Pity it can't do it on tagged files, but good enough for now. Both responses are most appreciated!

206 views      
 

Messages in this Thread

 
96,626 Postings in 12,229 Threads, 350 registered users, 41 users online (0 registered, 41 guests)
Index | Admin contact |   Forum Time: Feb 21, 2024 - 11:25 am UTC  |  Hits:61,509,339  (3,690 Today )
RSS Feed