Jump to content

Sending a file as command line object


 Share

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...