Jump to content

Problem with Run function


EricF
 Share

Recommended Posts

Hello,

I try to use a FTP command-line program to upload files.

Run("ftp-it.exe myfile.ext")

The program is FTP-It and return "Error during FTP connection". When A run this command by a copy and paste, It works. I think the problem is from the parameter. How to put it between double-quotes ?

Link to comment
Share on other sites

My issue may be similar to yours. I have the following command I'm trying to run:

"C:\Program Files\SPSSInc\SPSS16\law.exe" -is:javahome "C:\Program Files\SPSSInc\SPSS16\JRE" -s:silent

This can be formed into a legitimate string by: '"C:\Program Files\SPSSInc\SPSS16\law.exe" -is:javahome "C:\Program Files\SPSSInc\SPSS16\JRE" -s:silent'

It errors using the AutoIT Run command and in the XP Pro command line (cmd). However, it operates correctly if entered into Start -> Run. There is some difference between the two that I haven't figured out yet. Perhaps someone knows.

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...