New
#1
[Hobocopy] Batch file: Worked in Win7/32, doesn't work in Win10/64
Hello,
The following batch file is used by my daily backup application to copy several important files, zip them (with a password), and copy the zip file to a second computer and remote FTP.
It worked on my old 32-bit Win7 computer, but it doesn't on my new 64-bit Win10 computer.
It also displays this message several times: "Do you want to allow this app from an unknown publisher to make changes to your device?"
Starting the Volume Shadow Copy service makes no difference.
Is there another free, CLI alternative application that can copy locked files?
Thank you.
Backup.bat:
@echo off
SET basedir=c:\Temp\Backup\
Echo Clean up
cd %basedir%
c:
del *.zip *.pst *.aes
Echo VSS copy
%basedir%HoboCopy.exe c:\Documents\Outlook\ %basedir% MyFile.pst
%basedir%HoboCopy.exe c:\Documents\AES\ %basedir% blah.txt.aes aescrypt.exe
Echo ZIP passwd
%basedir%7za.exe -tzip -pmypasswd %basedir%Backup.zip %basedir%MyFile.pst %basedir%blah.txt.aes %basedir%aescrypt.exe
Echo Copy to local backup computer
del \\backup\Backup.zip
copy %basedir%Backup.zip \\backup
Echo Copy to FTP
%basedir%ncftpput.exe -u me -p mypasswd ftp.acme.com / %basedir%Backup.zip
msg * Backup done!
Run:
Clean up
VSS copy
HoboCopy (c) 2011 Wangdera Corporation. hobocopy@wangdera.com
Starting a full copy from c:\Documents\Outlook\ to c:\Temp\Backup\
There was a COM failure 0x80042302 - HoboCopy.cpp (181)
HoboCopy (c) 2011 Wangdera Corporation. hobocopy@wangdera.com
Starting a full copy from c:\Documents\AES\ to c:\Temp\Backup\
There was a COM failure 0x80042302 - HoboCopy.cpp (181)
HoboCopy (c) 2011 Wangdera Corporation. hobocopy@wangdera.com
ZIP passwd
7-Zip (a) 18.05 (x86) : Copyright (c) 1999-2018 Igor Pavlov : 2018-04-30
Scanning the drive:
1 file, 144384 bytes (141 KiB)
Creating archive: c:\Temp\Backup\Backup.zip
Add new data to archive: 1 file, 144384 bytes (141 KiB)
Files read from disk: 1
Archive size: 82722 bytes (81 KiB)
Everything is Ok
Copy to local backup computer
1 file(s) copied.
Copy to FTP
'msg' is not recognized as an internal or external command, operable program or batch file.
Last edited by Winfried; 12 Sep 2023 at 06:13.