Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP file wildcards

Status
Not open for further replies.
Jul 18, 2001
68
US
Does anybody know any wildcards that can be used when executing a get or put command from a NT box to a HP Unix box? *.* and related wildcards didn't work from a command prompt on my NT box when I connected to the directory on my Unix box via, FTP.
Any help would be appreciated.

Thanks
 
Use mget and mput instead of get and put. Use prompt to toggle prompting on and off.

CaKiwi
 
Thanks for the tip.

MGET/MPUT work great. Is there a syntax I can use so it'll FTP all files. Reason I ask is I want to incorporate this command in a batch file or script. I basically want the command to grab the contents of a directory or a group of files without know the files exact name.

Thanks!!!
 
won't mget * do what you want? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
MGET * works if I'm at the command line but, it prompts for a y/n response at every file in the target directory. I want to use this command in script/batch where it will run unattended on my NT box.

Any thoughts?
 
Use the prompt command before mget to turn off prompting.

CaKiwi
 
Alternatively, start ftp with ftp -i to turn off promting on startup, then use mput or mget.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top