Click here to Skip to main content
15,891,431 members
Home / Discussions / C#
   

C#

 
GeneralRe: Outlook Birthday Reminders Pin
zevman16-Sep-07 10:19
zevman16-Sep-07 10:19 
GeneralRe: Outlook Birthday Reminders Pin
Paul Conrad16-Sep-07 10:22
professionalPaul Conrad16-Sep-07 10:22 
GeneralRe: Outlook Birthday Reminders Pin
zevman16-Sep-07 9:08
zevman16-Sep-07 9:08 
QuestionOnly look in subfolders.. Pin
andredani16-Sep-07 6:35
andredani16-Sep-07 6:35 
AnswerRe: Only look in subfolders.. Pin
Lutosław16-Sep-07 8:46
Lutosław16-Sep-07 8:46 
GeneralRe: Only look in subfolders.. Pin
andredani16-Sep-07 9:03
andredani16-Sep-07 9:03 
GeneralRe: Only look in subfolders.. Pin
Lutosław16-Sep-07 9:37
Lutosław16-Sep-07 9:37 
GeneralRe: Only look in subfolders.. Pin
andredani16-Sep-07 19:17
andredani16-Sep-07 19:17 
ok =) gonna try...
Way won´t this work??
System.IO.DirectoryInfo subDI = new System.IO.DirectoryInfo(path);
foreach (String sub in Directory.GetDirectories(path))
{
foreach (String file in Directory.GetFiles(sub, "*.dat"))
{

int count = 0; for (int i = 0; i < sub.Length; i++) count += System.IO.Directory.GetFiles(sub[i]).Length;Cry | :(( Cry | :(( //// Here!!!!
String subName = sub.Substring(sub.LastIndexOf(@"\") + 1);
DateTime time = DateTime.Now;
ListViewItem item = new ListViewItem(new string[] { sort, subName, time.ToString(), "", count.ToString(), "", pris, appl });
this.listView2.Items.Add(item);
this.listView2.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
this.toolStripProgressBar1.Value += 50;
sparaform();
}
this.toolStripProgressBar1.Value = 0;
}

Want to getfiles count from subfolder to the path.
//thanks man!
GeneralRe: Only look in subfolders.. [modified] Pin
Lutosław17-Sep-07 2:02
Lutosław17-Sep-07 2:02 
GeneralRe: Only look in subfolders.. Pin
andredani17-Sep-07 2:22
andredani17-Sep-07 2:22 
GeneralRe: Only look in subfolders.. Pin
Lutosław17-Sep-07 3:21
Lutosław17-Sep-07 3:21 
GeneralRe: Only look in subfolders.. Pin
Lutosław17-Sep-07 3:34
Lutosław17-Sep-07 3:34 
QuestionThe type or namespace name could not be found Pin
Lutosław16-Sep-07 4:53
Lutosław16-Sep-07 4:53 
AnswerRe: The type or namespace name could not be found Pin
PIEBALDconsult16-Sep-07 5:10
mvePIEBALDconsult16-Sep-07 5:10 
GeneralRe: The type or namespace name could not be found Pin
Lutosław16-Sep-07 8:34
Lutosław16-Sep-07 8:34 
GeneralRe: The type or namespace name could not be found Pin
PIEBALDconsult16-Sep-07 11:09
mvePIEBALDconsult16-Sep-07 11:09 
GeneralRe: The type or namespace name could not be found Pin
PIEBALDconsult16-Sep-07 11:11
mvePIEBALDconsult16-Sep-07 11:11 
GeneralRe: The type or namespace name could not be found Pin
Lutosław16-Sep-07 11:20
Lutosław16-Sep-07 11:20 
GeneralRe: The type or namespace name could not be found Pin
PIEBALDconsult16-Sep-07 15:05
mvePIEBALDconsult16-Sep-07 15:05 
GeneralRe: The type or namespace name could not be found Pin
Lutosław16-Sep-07 8:48
Lutosław16-Sep-07 8:48 
GeneralRe: The type or namespace name could not be found Pin
Lutosław16-Sep-07 9:13
Lutosław16-Sep-07 9:13 
QuestionAdd connection Pin
Assaf8216-Sep-07 4:42
Assaf8216-Sep-07 4:42 
AnswerRe: Add connection Pin
PIEBALDconsult16-Sep-07 5:12
mvePIEBALDconsult16-Sep-07 5:12 
GeneralRe: Add connection Pin
Assaf8216-Sep-07 5:53
Assaf8216-Sep-07 5:53 
AnswerRe: Add connection Pin
Paul Conrad16-Sep-07 6:44
professionalPaul Conrad16-Sep-07 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.