473,503 Members | 9,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting into subfolders on a FTP server

3 New Member
I just need to get the list of files inside subfolders. I'm using the following code:

Inet1.RemotePort = UserPort
FTPSITE = "ftp://" + UserName + ":" + UserPassword + "@" + txtURLbox

Inet1.Execute FTPSITE, "DIR " '& txtNote.Text
txtNote.Text = Inet1.GetChunk(500000, 0)

All I can get from this in txtNote.Text is the root directory no matter what I set txtURLbox to. How can I get deeper than the root directory?
Dec 30 '11 #1
3 1676
BigPapaN0z
24 New Member
I'm assuming you are setting the variables for UserName, UserPassword and txtURLbox before calling the above code? (It may sound silly, but if the txtURLbox isn't set, it will always return the root directory since it is always null/blank.

Second, is the & txtNote.Text supposed to be commented out? Just curious.

It might help to post the code in it's entirety so we may see if the error is elsewhere.

Looking forward to helping you work this out! :)

PS - When posting code, please remember to use [ CODE ] and [ /CODE ] tags to make it easier for everyone to read. Thanks :)
Dec 30 '11 #2
rockybeach
3 New Member
Actually I worked that one out on my own. The subfolder name needs to be added after the DIR part of the command. That works fine. Now that I am into the subfolder on a FTP server, I am unable to use GET to copy files from the subfolder to my PC. Any ideas on that?
Dec 30 '11 #3
BigPapaN0z
24 New Member
You should be able to use "GET remote_filename.ext local_filename.ext" if you're using the same Execute command. If you wish to save the local copy somewhere specific you just need to put it as (for example) "GET filename.ext C:\Path\where\you\save\filename.ext"
Dec 31 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1305
by: Andrew Alger | last post by:
Ok here is the story. Test Environment: 1 IIS Box Win 2k 1 SQL Box Win 2k Live Environment: 1 IIS Box Win 2k3 1 SQL Box Win 2k
1
3209
by: William F. Robertson, Jr. | last post by:
I am having problems with using the WebRequest object (or HttpWebRequest ). I have created the WebRequest and set the credentials, but when I call GetResponse() it is throwing an internal server...
1
1112
by: Steve Caliendo | last post by:
Hi, Could someone please tell me how to get the server's IP address? Thanks, Steve
1
1725
by: GramLogic | last post by:
I defined a ns.wsdl file on my openBSD server running Apache 1.3.29. I already know Apache works fine on the server. When I enter the URL of http://..IPaddress../cgi-bin/ns.wsdl in the text box...
2
5054
by: Alex | last post by:
Hi, I am new to the mysteries of SQLDMO. I have written a program whereby the user can select which SQL server to connect to on the Network and this works fine. I am using the...
1
1856
by: Alec MacLean | last post by:
Hi, Outline of problem: I've built a set of user controls that are used to output questions for a survey and gather the responses using simple radio buttons. I'm adding an optional textbox...
1
4486
by: jojojjose | last post by:
function draw() { var s=''; s+='<v:polygon points="'; s+= //points from server s+="> </v:polygon>'"; document.wrie(s); }
0
1008
by: Martin84 | last post by:
Hi all, im building a small personal website but know next to nothing about servers and hosts. After running a few searches I found lots of hosts (decided on a 1&1.co.uk package) but next to nothing...
41
3459
by: LayneMitch via WebmasterKB.com | last post by:
I was just chating with a few webdevelopers and it was brought to my attention that I need some type of server technology installed on my computer so I could get a visual of how my sites would look...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7095
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7015
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.