Jump to content
Sign in to follow this  

Sending a file as command line object

Recommended Posts


I could really use some help getting off the nickel on this one. Here's my problem. I would like to be able to right click on a file and use the SENDTO function so that file is then used in an AutoIT script RunWait command. In particular a Winzip command line to zip, encrypt, password protect, name and save the file. I can do this with a simple dos command in a batch file:

wzzip \\servername\folder\sample.zip -spassword %1%

The trouble is I need the flexibility of AutoIT to use variables for some of the command line arguments. I can seem to get wzzip to work, but how do I get the script to utilize the SENDTO file?

Thanks is advance.


I just figured it out. $file = $CMDLINE[1]

Thank you.

Edited by gspino

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.