views:

402

answers:

1

I want to FTP some files across networks using Windows FTP command prompt and I want to retrieve the FTP parameters from registry keys I have already setup for another related application.

Is there a way to read these parameters in-line direct from the registry as passed values into the FTP command?

+1  A: 

You can use command line switches on regedit.exe to read/write values. Whether you can do it directly in line for another command I don't know (but I doubt it).

Maybe you can use '>' to store the output in a text file, then read it in for your input to the next command. It would have to be multiple commands in a batch file to do that.

Or, if you can use reg.exe. (don't think it's installed by default - Can't remember, think it comes with the windows server resource kit or something like that)

(Or just use powershell)

Simon P Stevens