Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
AnswerRe: Global Variables... Pin
Ian Shlasko18-Sep-09 8:14
Ian Shlasko18-Sep-09 8:14 
QuestionBackgroundworker Pin
arkiboys18-Sep-09 7:05
arkiboys18-Sep-09 7:05 
AnswerRe: Backgroundworker Pin
Luc Pattyn18-Sep-09 7:11
sitebuilderLuc Pattyn18-Sep-09 7:11 
AnswerRe: Backgroundworker Pin
Luc Pattyn18-Sep-09 7:39
sitebuilderLuc Pattyn18-Sep-09 7:39 
AnswerRe: Backgroundworker Pin
Ian Shlasko18-Sep-09 8:19
Ian Shlasko18-Sep-09 8:19 
QuestionEnumerate a Listbox Pin
bxlorenz18-Sep-09 7:04
bxlorenz18-Sep-09 7:04 
AnswerRe: Enumerate a Listbox Pin
Luc Pattyn18-Sep-09 7:09
sitebuilderLuc Pattyn18-Sep-09 7:09 
QuestionCopy Files in C# with Duplicate Files (Corrupt ISO) Pin
Xtrodinary18-Sep-09 6:30
Xtrodinary18-Sep-09 6:30 
So I am having a problem. I generated about 100 ISO's files of my movies so I can stream them to my TV. Well now I find out I dont need them in ISO, I need AVI. I am trying to open the ISO and the tool that was used created 2 versions of the same file in the same folder. 1 with 0 bytes and 1 with full bytes. Now here is my question from a C# point of view. I am mounting the ISO as a Drive in Windows and copying all but the 0 byte file out. Works fine in Windows. I want to automate this by having c# Mount the Image and copy the files out. I use the System.IO.Directory.GetFiles and build a array of files. When I go through the array to copy the files, I reference by filename which always get the 0 byte file and not the correct file. I cant delete the 0 byte file as it gets mounted as a CD which is read only. Is there any way to reference a file by some internal ID rather than filename in c#?


private void button1_Click(object sender, EventArgs e)
{
List<string> sFilestoProcess;
List<string> sCopyFiles;

sFilestoProcess = GetISOtoProcess();

foreach (string sFile in sFilestoProcess)
{
Mount(sFile);
sCopyFiles = GetValidFiles();
}
}

private List<string> GetISOtoProcess()
{
List<string> Files = new List<string>();
foreach (string sDirectory in System.IO.Directory.GetFiles(@"D:\"))
{
Files.Add(sDirectory);
}

return Files;
}
AnswerRe: Copy Files in C# with Duplicate Files (Corrupt ISO) Pin
jared.hildebrandt21-Oct-09 5:16
jared.hildebrandt21-Oct-09 5:16 
QuestionNo connection could be made because the target machine actively refused it Pin
Amritarth18-Sep-09 6:06
Amritarth18-Sep-09 6:06 
AnswerRe: No connection could be made because the target machine actively refused it Pin
EliottA18-Sep-09 6:31
EliottA18-Sep-09 6:31 
AnswerRe: No connection could be made because the target machine actively refused it Pin
Luc Pattyn18-Sep-09 6:31
sitebuilderLuc Pattyn18-Sep-09 6:31 
AnswerRe: No connection could be made because the target machine actively refused it Pin
Dave Kreskowiak18-Sep-09 7:27
mveDave Kreskowiak18-Sep-09 7:27 
AnswerRe: No connection could be made because the target machine actively refused it Pin
0x3c018-Sep-09 7:40
0x3c018-Sep-09 7:40 
AnswerRe: No connection could be made because the target machine actively refused it Pin
Arun Jacob18-Sep-09 19:00
Arun Jacob18-Sep-09 19:00 
QuestionHow to find total data downloaded and uploaded by user (using c# code) Pin
Ajay Kewale18-Sep-09 5:27
Ajay Kewale18-Sep-09 5:27 
AnswerRe: How to find total data downloaded and uploaded by user (using c# code) Pin
Eddy Vluggen18-Sep-09 9:53
professionalEddy Vluggen18-Sep-09 9:53 
QuestionHow to get upload status in steps Pin
vsaratkar18-Sep-09 5:12
vsaratkar18-Sep-09 5:12 
AnswerRe: How to get upload status in steps Pin
Not Active18-Sep-09 5:22
mentorNot Active18-Sep-09 5:22 
AnswerRe: How to get upload status in steps Pin
Dave Kreskowiak18-Sep-09 5:24
mveDave Kreskowiak18-Sep-09 5:24 
AnswerRe: How to get upload status in steps Pin
vsaratkar18-Sep-09 7:19
vsaratkar18-Sep-09 7:19 
QuestionAccessing to an Object in Section4 of a Crystal Report with C# ? Pin
Mohammad Dayyan18-Sep-09 5:07
Mohammad Dayyan18-Sep-09 5:07 
Questionplay video on the form without a control Pin
Jassim Rahma18-Sep-09 4:47
Jassim Rahma18-Sep-09 4:47 
AnswerRe: play video on the form without a control Pin
EliottA18-Sep-09 4:56
EliottA18-Sep-09 4:56 
Questionyour advise plz: Activate the software Pin
Jassim Rahma18-Sep-09 4:45
Jassim Rahma18-Sep-09 4:45 

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.