Writing command line outputs to local files

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
ajetrumpet
Posts: 3
Joined: 01 Nov 2009 00:19

Writing command line outputs to local files

#1 Post by ajetrumpet » 01 Nov 2009 00:22

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!

X-Zat
Posts: 8
Joined: 31 Oct 2009 07:58
Contact:

#2 Post by X-Zat » 01 Nov 2009 08:44

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

ajetrumpet
Posts: 3
Joined: 01 Nov 2009 00:19

#3 Post by ajetrumpet » 01 Nov 2009 11:54

thanks I'll try it!

Post Reply