Solved

FTP Connect directly to specific directory?

Posted on 2004-04-12
4
1,033 Views
Last Modified: 2006-11-17
Hi,

Using Window's ftp command on the command line, I wish to connect to a specific directory on a ftp server.  I.e. "ftp myftp.myhost.com/ThiDir" but of course that doesn't work because it will say that domain is an unknown host.  I cannot log into the ftp at myftp.myhost.com first because the username/password that is logging in only has access to login to that one directory.

Is there a way to automatically connect to a specific directory on an ftp server while using the command line other than "cd"ing to it after username/password authentication?  I need this in a jif so points are kinda high.

Thanks.
0
Comment
Question by:nmwis70
4 Comments
 
LVL 1

Accepted Solution

by:
Darix earned 250 total points
Comment Utility
can you connect to that dir via IE? if server lets you, it must let you connect, if not - ftp server configured incorrectly.

if you need that windows ftp client automatically changes to some dir on connect you can do it in such way:

create file ftp.txt
in it write:

open some_host
some_user
some_pass
cd some_dir

then run ftp clietn with such command:

ftp -s:ftp.txt
0
 
LVL 4

Author Comment

by:nmwis70
Comment Utility
Please close this question.  Thanks.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now