Page 1 of 1

Writing command line outputs to local files

Posted: 01 Nov 2009 00:22
by ajetrumpet
hello all,

I have asked this on a couple of forums, but I thought I would check here too. I can write the following to output the DOS list of files and folders of the current directory to a text file:

Code: Select all

dir /b > dirs.txt
this works beautifully when I'm in CMD.EXE mode, but not in FTP mode. Does anyone know if the same thing is possible in FTP mode? when I write this same thing in that mode, I get this message:

Code: Select all

USAGE: remote directory local file.
can anyone help me out with this one. thanks!

Posted: 01 Nov 2009 08:44
by X-Zat
As far as I know, this does not work woth batch...
- At least, it does not in FTP-Mode.

Why don't you try this:

1. Write a batchfile that acts at a specified time to do

Code: Select all

dir /b > dirs.txt


2. Put it on your FTP-Server

3. Write another batchfile that enters FTP-Mode and gets the dirs.txt
(I do not exactly know the FTP-Commands by now...)

That's a much simplier method and it should work. - Think easier ;)

Bye, X-Zat

Posted: 01 Nov 2009 11:54
by ajetrumpet
thanks I'll try it!