Jump to content

trouble with DOS command


Bert
 Share

Recommended Posts

Take a look at the pic. It works when I do it from DOS, but not when I use _RunDOS. ??????

It runs, but nothing gets unzipped.

_RunDos() does exactly what you did with RunWait().

Func _RunDOS($sCommand)
    Return RunWait(@ComSpec & " /C " & $sCommand, "", @SW_HIDE)
EndFunc  ;==>_RunDOS

The problem is: With RunWait() you specify the exact path of pkunzip (c:\) while with _RunDos() you don't!

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

This is a pic of the DOS window when I run the following from SciTe. You can see it runs, but PKZIP acts like there is a issue:

RunWait(@COMSPEC & " /c c:\pkunzip.exe -d -e -o usr.zip")

If I run this from DOS, it works fine:

C:\>pkunzip.exe -d -e -o usr.zip

I'm using the same switches, and the path is the same. :whistle: Edited by vollyman
Link to comment
Share on other sites

This is a pic of the DOS window when I run the following from SciTe. You can see it runs, but PKZIP acts like there is a issue:

RunWait(@COMSPEC & " /c c:\pkunzip.exe -d -e -o usr.zip")

If I run this from DOS, it works fine:

I'm using the same switches, and the path is the same. :whistle:

Path (c:\), not switches !!!

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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