Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Duck.exe CLI with variables in Batch Script #9757

Closed
cyberduck opened this issue Nov 10, 2016 · 2 comments
Closed

Use Duck.exe CLI with variables in Batch Script #9757

cyberduck opened this issue Nov 10, 2016 · 2 comments
Assignees
Labels
bug cli Command Line Interface worksforme

Comments

@cyberduck
Copy link
Collaborator

627800f created the issue

Hello,

I would like to drive the Duck.exe CLI with numerous variables inside a Batch Script. My example below with %1 doesn't work.

"C:\Program Files (x86)\Cyberduck CLI\duck.exe" --upload spectralogic://aXR2:Yf5uGdto@192.168.0.114:8080/ITVtest/ %1 -y

This version without variable does work.

"C:\Program Files (x86)\Cyberduck CLI\duck.exe" --upload spectralogic://aXR2:Yf5uGdto@192.168.0.114:8080/ITVtest/ \Warpspeed\raid0\ITV\CEN_Mountain_HD_4.10.2016.mxf -y

Please can you confirm that duck.exe is useable with variables from the command line. If yes, is there any particular syntax I must use to add a variable inside my batch script?

Many thanks

@cyberduck
Copy link
Collaborator Author

@dkocher commented

#9759 closed as duplicate.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

Since it's the shell replacing the variable (and not duck itself) that should work as expected. The following test was successful.

Batch file cli.bat:

echo %1
"C:\Program Files (x86)\Cyberduck CLI\duck.exe" %1

Then running cli.bat --help prints the help text.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug cli Command Line Interface worksforme
Projects
None yet
Development

No branches or pull requests

2 participants