Sign in to follow this  
Followers 0
Bert

trouble with DOS command

6 posts in this topic




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 *

Share this post


Link to post
Share on other sites

Why BMP ? Whyy whyy !? :whistle:

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
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 *

Share this post


Link to post
Share on other sites

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

WorkingDir is causing the problem.

:)

Share this post


Link to post
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
Sign in to follow this  
Followers 0