V
V
⚡Valery⚡2018-01-27 16:46:28
Python
⚡Valery⚡, 2018-01-27 16:46:28

How to add a variable?

Have a great weekend everyone !
Tell me please . The command for archiving works well, but I need to add a variable to it so that the variable "a" is allowed in the archive.zip place, where the path where the archive will be saved will be written. How to do it ? Thanks for the help .

os.system("start winrar.exe a -pPASS -r -ibck archive.zip D:\\ico\\*.*")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-01-27
@valo1114

a = 'archive.zip'
Once:
Two:
Three:

os.system(f'start winrar.exe a -pPASS -r -ibck {a} D:\\ico\\*.*')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question