Jump to content

Running a program with command line options


Recommended Posts

I'm trying to write a script to automatically uninstall Webshots from computers in our domain, however I keep getting the error "Could not open INSTALL.LOG file" from unwise.exe. Here is the line I am using to uninstall...

Run (@ProgramFilesDir & "\Webshots\Unwise.exe /a INSTALL.LOG", ".\")

Any ideas?

Thanks!

Link to comment
Share on other sites

  • Developers

I'm trying to write a script to automatically uninstall Webshots from computers in our domain, however I keep getting the error "Could not open INSTALL.LOG file" from unwise.exe.  Here is the line I am using to uninstall... 

Run (@ProgramFilesDir & "\Webshots\Unwise.exe /a INSTALL.LOG", ".\")

Any ideas?

Thanks!

what about when you set the workdir to the program dir ?

Run (@ProgramFilesDir & "\Webshots\Unwise.exe /a INSTALL.LOG", @ProgramFilesDir & "\Webshots")

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

That worked, thanks...I guess AutoIt sets the current directory to something else since the line I originally posted would not work if I left out the second parameter completely either. Thanks for the help though. :D

Link to comment
Share on other sites

That worked, thanks...I guess AutoIt sets the current directory to something else since the line I originally posted would not work if I left out the second parameter completely either.  Thanks for the help though.  :D

Actually I think it's a dos thing

When I type command in run in 98 I get the dir explore has open. When I do it in xp I always get the same dir all the time

Rick

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