Search found 4 matches

by Robbin2021
24 Aug 2021 09:13
Forum: DOS Batch Forum
Topic: Copy filename to NEW filename
Replies: 5
Views: 3716

Re: Copy filename to NEW filename

Hello Steffen (and All) I think I've found a solution to my PHSM.BAT @echo off :: First set an environment variable to the backup dir - makes it easier if you want to change the dir later SETLOCAL ENABLEEXTENSIONS SET BACKUPDIR=C:\Totalcmd\PHSM-Calendar SET SOURCEDIR=%APPDATA%\PHSM-Calendar SET ARCH...
by Robbin2021
23 Aug 2021 06:01
Forum: DOS Batch Forum
Topic: Copy filename to NEW filename
Replies: 5
Views: 3716

Re: Copy filename to NEW filename

I've made some revisions. While it may not look pretty, I hope it will get the job done. PHSM.BAT @echo off :: First set an environment variable to the backup dir - makes it easier if you want to change the dir later SETLOCAL SET BACKUPDIR=C:\Totalcmd\PHSM-Calendar SET SOURCEDIR=%APPDATA%\PHSM-Calen...
by Robbin2021
22 Aug 2021 08:26
Forum: DOS Batch Forum
Topic: Copy filename to NEW filename
Replies: 5
Views: 3716

Re: Copy filename to NEW filename

I thank you for your response. I will have to paste your code and determine if it will perform the task. I can see the file time is going to present some complications because of the colon so I can eliminate the file time as being a requirement for NEW filename,
by Robbin2021
20 Aug 2021 05:25
Forum: DOS Batch Forum
Topic: Copy filename to NEW filename
Replies: 5
Views: 3716

Copy filename to NEW filename

I would appreciate if you could take the time to point me in the right direction that would permit me to complete my short batch file. dir "PHSM-Dates.dat" | find /v "Volume" | find /v "bytes" | find /v "Directory" REM Do I need to redirect this output to a file? 06-19-2021 06:22 673,279 PHSM-Dates....