Jump to content

Unraring and running dos commands


spanga
 Share

Recommended Posts

Hi.

I got a script that download a file from my webserver. Then it is supposed to unrar the file it has downloaded.

I though "piece of cake", but now I am banging my head after trying everything I know of, it just wont work...

Here is an example of what I tried:

RunWait(@ComSpec & " /C " & @ScriptDir & "\unrar.exe x therarfile.rar >ee.txt", "", @SW_HIDE)

The funny thing is that when I do this on my own computer it works, but when copying the compiled executable to my other computer it will download the file and so on but it wont extract. I also tried putting the unrar commands in a bat file and then run:

Run("exec.bat","",@SW_HIDE)

The bat file works when double-clicking on it.

Same result. Works on my computer, but no one elses.

Anyone know what could be wrong or know another way of unpacking the file?

Edited by spanga
Link to comment
Share on other sites

Hi.

I got a script that download a file from my webserver. Then it is supposed to unrar the file it has downloaded.

I though "piece of cake", but now I am banging my head after trying everything I know of, it just wont work...

Here is an example of what I tried:

RunWait(@ComSpec & " /C " & @ScriptDir & "\unrar.exe x therarfile.rar >ee.txt", "", @SW_HIDE)

The funny thing is that when I do this on my own computer it works, but when copying the compiled executable to my other computer it will download the file and so on but it wont extract. I also tried putting the unrar commands in a bat file and then run:

Run("exec.bat","",@SW_HIDE)

The bat file works when double-clicking on it.

Same result. Works on my computer, but no one elses.

Anyone know what could be wrong or know another way of unpacking the file?

Does the other computers have unrar.exe, if not you will have to use FileInstall to send it with the script


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Does the other computers have unrar.exe, if not you will have to use FileInstall to send it with the script

Yes, all computer download unrar.exe, which does not need to be installed since it works if I manually run the bat command. The problem lies were auto-it gets the task to run the bat file or the unrar.exe, I am pretty sure of.
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...