15,910,872 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Friendsaa (Top 33 by date)
Friendsaa
4-May-13 6:45am
View
Yes, I am downloading using FTPwebrequest, First file is 600Mb, which is taking too much time.
then all small files are going fine, How can i show progress for each file (downloaded bytes of total bytes of one file)
Friendsaa
28-Apr-13 11:09am
View
Thanks for your Response, My problem is Solved :)
Friendsaa
28-Apr-13 2:01am
View
I am using debugger only, Its threw an exception at System.IO.StreamReader(tmpReader).EndOfStream threw an exception.
Friendsaa
27-Apr-13 18:01pm
View
This is not helping me :(
Friendsaa
27-Apr-13 18:00pm
View
Deleted
Problem not yet resolved, Same exception, CANNOT ACCESSS A DISPOSED OBJECT, System.Net.Sockets.NetworkStream
Friendsaa
27-Apr-13 10:25am
View
How to check Status Code or Status Description?
Friendsaa
24-Apr-13 13:28pm
View
Thanks, But Even though i change there to 2.0.0.0, .manifest file has 1.0.0.0 in debug folder why?
Friendsaa
22-Apr-13 10:30am
View
My foreach loop is executing till my array items finished
i want to get programmatically how many files it counted. and i want to put that value in global variable.
Friendsaa
21-Apr-13 10:45am
View
private void Form1_Load(object sender, EventArgs e)
{
Download();
}
private void Download()
{
// code for ftp download
}
Friendsaa
18-Apr-13 15:14pm
View
what do you mean its not work if it is ftp?
Friendsaa
18-Apr-13 15:06pm
View
FtpWebRequest ftp = (FtpWebRequest)FtpWebRequest.Create("ftp://me@localhost/" + ab);
//ab=newfolder/newfolder1
ftp.Credentials = new NetworkCredential(user, pass);
ftp.Method = WebRequestMethods.Ftp.ListDirectory;
StreamReader sr = new StreamReader(ftp.GetResponse().GetResponseStream());
StringBuilder result = new StringBuilder();
string abc = sr.ReadLine();
while (abc != null)
{
result.Append(abc); //abc=file
result.Append("\n");
if (File.Exists(ab+abc))
{
//file
}
}
Friendsaa
18-Apr-13 14:48pm
View
What do u mean by Server.MapPath?
Friendsaa
18-Apr-13 14:47pm
View
Even though i mention the full path, Its not reading it as file :(
Friendsaa
18-Apr-13 11:52am
View
When it is applications folder its working fine, But i dont want it on applications folder
how do i specify absolute path File.Exists(Fullpath) like this?
Friendsaa
18-Apr-13 11:51am
View
Thanks, U got me Correctly, when the files are in project, its working.
But i dont want to keep files in my project, so where should i specify full path?
File.Exists(Fullpath)
like this?
Friendsaa
18-Apr-13 5:16am
View
"label_me_red.ico.deploy" is string from StreamReader.ReadLine()
if(File.Exists("label_me_red.ico.deploy"))
{
// File
}
else
{
// Folder
}
Friendsaa
18-Apr-13 3:54am
View
I know my file is there,
my file name is like this "label_me_red.deploy"
Friendsaa
16-Apr-13 4:58am
View
I want just path not ftp string, path from which folder its coming?
Friendsaa
16-Apr-13 4:57am
View
thank you OriginalGriff, But how to use it :(
Friendsaa
13-Apr-13 12:15pm
View
I want that jpg file to be download in debug folder, if the same file is already in debug folder its overwritten, if the same file is not in debug folder its not downloading? i want it in debug folder
Friendsaa
13-Apr-13 11:10am
View
can u check your debug folder, is it downloaded, as i tried its not downloading till the same file is available in debug folder.
Friendsaa
13-Apr-13 10:29am
View
please check my updated question now
Friendsaa
8-Apr-13 15:42pm
View
I want to read each sub directories of my root directory, My root directory is in FTP link.
Friendsaa
7-Apr-13 16:25pm
View
My directory name is "A.B"
And its path is FTP link
Friendsaa
3-Apr-13 3:33am
View
I want to execute all codes, i dont want to use else, if statement fails then execute second if.
Friendsaa
1-Apr-13 3:48am
View
I did not used threading for progressbar as i dont know it
Friendsaa
1-Apr-13 3:39am
View
count is the files which i am downloading
Friendsaa
1-Apr-13 2:06am
View
My problem is Messagebox is displaying before progress bar finished. see the below code
private void Form1_Load(object sender, EventArgs e)
{
bgw.RunWorkerAsync();
}
private void bgw_DoWork(object sender, DoWorkEventArgs e)
{
for (int i = 0; i <= count; i++)
{
bgw.ReportProgress((i * 100) / count);
}
}
private void bgw_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
progressBar1.Value = e.ProgressPercentage;
}
private void bgw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
Application.DoEvents();
MessageBox.Show("Succcesfully Updated");
}
Friendsaa
1-Apr-13 2:06am
View
My problem is Messagebox is displaying before progress bar finished. see the below code
private void Form1_Load(object sender, EventArgs e)
{
bgw.RunWorkerAsync();
}
private void bgw_DoWork(object sender, DoWorkEventArgs e)
{
for (int i = 0; i <= count; i++)
{
bgw.ReportProgress((i * 100) / count);
}
}
private void bgw_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
progressBar1.Value = e.ProgressPercentage;
}
private void bgw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
Application.DoEvents();
MessageBox.Show("Succcesfully Updated");
}
Friendsaa
31-Mar-13 3:40am
View
I already did this, My question is how could i count files to show the progress in progressbar, Upto Downloading files i finished.
Friendsaa
31-Mar-13 2:36am
View
I am using FileZilla Client, To show progress of downloading files i want to count files, I downloaded files using FtpWebRequest.
Friendsaa
30-Mar-13 11:56am
View
Thanks alot
Friendsaa
30-Mar-13 11:45am
View
Thanks,
I have 50 text files folder what is the better way to do all?
Show More