Question about Command Line Parameters

64 views
Skip to first unread message

Veso Dimov

unread,
Aug 3, 2023, 3:08:38 AM8/3/23
to Bandizip for Windows forum
Hello friends.
The situation is as follows: I have files on d:\test1. I want on d:\test2 to create an archive of these files named dd.mm.yyyy.zip. I have this command in one .bat file:

runas /user:Administrator
@ echo off
cls     
c:
cd C:\Program Files\Bandizip
Bandizip.exe c -date d:\test2\Backup_%d_%m_%Y.zip d:\test1\

But when I run this .bat file i see this:
bandizip_invalid_parameter.png

Where am I wrong?
Regards

KH Park

unread,
Aug 3, 2023, 9:56:24 PM8/3/23
to Bandizip for Windows forum

Hello. This is Bandisoft.


You have to use %% instead of % like this in the batch file.

bandizip c -date Backup_%%d_%%m_%%Y.zip c:\temp\test\



Please check this link for the meaning of % in a batch file.




Best Regards, 
Park, KH



--
You received this message because you are subscribed to the Google Groups "Bandizip for Windows forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bandizip-win...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bandizip-win/6f8e2646-ac79-487b-8ad0-3ff887aab626n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages