473,382 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

FTP commands: Delete and Rename

teo
hallo

I'm with vb net fx 2.0 vs2005

I'have difficulties to find some functions that allow me
to delete and rename files and folders
via FTP

I'm good with
My.Computer.Network.UploadFile
My.Computer.Network.DownloadFile
but I need the two functions I mentioned above too

They appear to be very common tasks,
but I have no clue how to accomplish those tasks


Jun 27 '08 #1
1 3724
You will want to start with some code like this:

Dim fwr As New System.Net.FtpWebRequest
fwr.Method = System.Net.WebRequestMethods.Ftp.DeleteFile

An example of a more complete program is available at
http://www.codeproject.com/KB/IP/FtpClient.aspx.
"teo" wrote:
hallo

I'm with vb net fx 2.0 vs2005

I'have difficulties to find some functions that allow me
to delete and rename files and folders
via FTP

I'm good with
My.Computer.Network.UploadFile
My.Computer.Network.DownloadFile
but I need the two functions I mentioned above too

They appear to be very common tasks,
but I have no clue how to accomplish those tasks


Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Adam | last post by:
Hello, I have a 2 column file that looks like this: VALUE1 | VALUE2 12 | 7 10 | 7 9 | 8 10 | 8 11 | 8 6 | 9 8 | 9
4
by: Patrick de Ridder | last post by:
This is rather elementary but I cannot find it anywhere. How do you rename a file from within a program in C# ? (In the directory I mean.) How do you delete a file from within a program in C# ?...
2
by: Rich | last post by:
Hello, I have an oleDBDataAdapter (da1) which gets data from an Access mdb and fills a dataset (ds1) with integer data from "tbl1" in Access. Data displays in textboxes on a form. The...
1
by: Lulu | last post by:
What is the easiest way to 1) delete a File System Website Solution and 2) rename a File System Website solution? I noticed when I create the ASP.NET Web Site (via File System location option)...
13
by: =?Utf-8?B?VmVybm9uIFBlcHBlcnM=?= | last post by:
I am using VS2005. I created a Windows Appication project. Inside the Server Explorer, I created a new SQLExpress database, and then created a new table. I added the rows, making my first row an...
3
by: stonefunker | last post by:
I've been playing around with the concept of wiping files from a thumbdrive and it seems to be working pretty well. I have the code below and the file seems to be overwritten as they should. I...
2
by: zw | last post by:
Hi I have 2 unix boxes. In each box, I have a unix shell script that captures certain statistics to a file of the unix box. During the run of the 2 shell scripts, I need a common timestamp for...
0
by: douglandmesser | last post by:
Hey all. I found this awesome source code online that covers basically all of the wininet.dll function calls for FTP commands. It doesn't, however, actually work! lol The code is below: Source -...
1
by: achotto | last post by:
hi, i try to upload a multiple image files. after that i will rename the files name. the problem is when i upload a 2 or more same files name exp-goal.jpg, it will return "files already exist". ok...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.