views:

102

answers:

1

I am currently running a command and it is producing the compressed file. I need to store that zip file into c:\windows\abc.zip. Does anyone know how to do that?

MY current command is something like this: cd %path% cdx.exe

I have tried specifying the path after cdx.exe but it doesn't store in that path. It is running the exe but storing on my desktop instead of c:\windows.

Hope it make sense.

+1  A: 

> will output to a file (>> will append)

so try

cdx.exe > c:\windows\abc.zip

See the echo section here: List of DOS Commands

Mitch Wheat
I had this same problem once, but I was using | instead. I forgot I was on a machine that was neither *nix nor with Cygwin.
Charlie Salts
i tried this and it didn't work on some of the servers on which Im tryin to run abc.exe.some of them got successfull but other's failed
alice7