Click here to Skip to main content
14,325,892 members

C / C++ / MFC

 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 3:08
membera random user23-May-15 3:08 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 3:45
membera random user23-May-15 3:45 
GeneralRe: C language Help using Dirent.h Pin
Richard MacCutchan23-May-15 6:27
protectorRichard MacCutchan23-May-15 6:27 
QuestionRe: C language Help using Dirent.h Pin
a random user23-May-15 9:47
membera random user23-May-15 9:47 
AnswerRe: C language Help using Dirent.h Pin
Richard MacCutchan23-May-15 20:58
protectorRichard MacCutchan23-May-15 20:58 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 23:05
membera random user23-May-15 23:05 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 23:19
membera random user23-May-15 23:19 
GeneralRe: C language Help using Dirent.h Pin
a random user24-May-15 2:08
membera random user24-May-15 2:08 
Go to ParentNow that I fixed most of the code the last part is which is the loop to find out the name of the second folder

Reminder that The argv has a path to a folder
the program is trying to exit the folder to the fodler before (succeeded)
and now at the last part trying to get the path for the second folder and the file before if it makes any sence

so for some odd reason it doesnt work
the weirder part is when i try to do puts(); on the Dir struct d_name
and it triggers break point


Hide Copy Code
//UnwatedName = /C2_Mid_Anti-Virus_Project.zip notPath1 = '.' notPath2=".."


while (OtherEnt = readdir(OtherDir))
{

puts(OtherEnt->d_name);

if ((OtherEnt->d_name != UnwantedName) && (OtherEnt->d_name != notPath1) && (OtherEnt->d_name != notPath2))
{
puts(OtherEnt->d_name);
strcpy(InfectedFolderPath, entrenceToTheFolderBefore);
strcat(InfectedFolderPath, "/");
strcat(InfectedFolderPath, OtherEnt->d_name);
puts(InfectedFolderPath);

}



}
GeneralRe: C language Help using Dirent.h Pin
Richard MacCutchan24-May-15 2:19
protectorRichard MacCutchan24-May-15 2:19 
GeneralRe: C language Help using Dirent.h Pin
a random user24-May-15 2:51
membera random user24-May-15 2:51 
GeneralRe: C language Help using Dirent.h Pin
Richard MacCutchan24-May-15 3:08
protectorRichard MacCutchan24-May-15 3:08 
GeneralRe: C language Help using Dirent.h Pin
a random user24-May-15 4:08
membera random user24-May-15 4:08 
GeneralRe: C language Help using Dirent.h Pin
a random user24-May-15 5:17
membera random user24-May-15 5:17 
GeneralRe: C language Help using Dirent.h Pin
David Crow26-May-15 2:53
memberDavid Crow26-May-15 2:53 
GeneralRe: C language Help using Dirent.h Pin
David Crow26-May-15 2:51
memberDavid Crow26-May-15 2:51 
QuestionRe: C language Help using Dirent.h Pin
David Crow26-May-15 3:49
memberDavid Crow26-May-15 3:49 
QuestionRe: C language Help using Dirent.h Pin
David Crow26-May-15 2:48
memberDavid Crow26-May-15 2:48 
QuestionCString with non display characters Pin
ForNow22-May-15 6:00
memberForNow22-May-15 6:00 
SuggestionRe: CString with non display characters Pin
Richard MacCutchan22-May-15 7:15
protectorRichard MacCutchan22-May-15 7:15 
GeneralRe: CString with non display characters Pin
ForNow22-May-15 7:55
memberForNow22-May-15 7:55 
AnswerRe: CString with non display characters Pin
Richard Andrew x6422-May-15 12:26
professionalRichard Andrew x6422-May-15 12:26 
GeneralRe: CString with non display characters Pin
Richard MacCutchan22-May-15 22:14
protectorRichard MacCutchan22-May-15 22:14 
GeneralRe: CString with non display characters Pin
ForNow25-May-15 15:27
memberForNow25-May-15 15:27 
GeneralRe: CString with non display characters Pin
Chris Losinger26-May-15 3:29
professionalChris Losinger26-May-15 3:29 
AnswerRe: CString with non display characters Pin
Albert Holguin28-May-15 4:59
professionalAlbert Holguin28-May-15 4:59 

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.