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!

82 views      
 

Messages in this Thread

 
96,456 Postings in 12,197 Threads, 350 registered users, 97 users online (0 registered, 97 guests)
Index | Admin contact |   Forum Time: Sep 30, 2023 - 7:25 am UTC  |  Hits:58,246,129  (10,876 Today )
RSS Feed