Click here to Skip to main content
15,894,017 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows form application connectivity Pin
Dave Kreskowiak20-Feb-17 5:29
mveDave Kreskowiak20-Feb-17 5:29 
GeneralRe: Windows form application connectivity Pin
Member 1301073120-Feb-17 6:57
Member 1301073120-Feb-17 6:57 
GeneralRe: Windows form application connectivity Pin
Dave Kreskowiak20-Feb-17 9:30
mveDave Kreskowiak20-Feb-17 9:30 
AnswerRe: Windows form application connectivity Pin
Sascha Lefèvre20-Feb-17 5:11
professionalSascha Lefèvre20-Feb-17 5:11 
QuestionReturning JSON From RESTful WCF Pin
Liagapi17-Feb-17 20:42
Liagapi17-Feb-17 20:42 
AnswerRe: Returning JSON From RESTful WCF Pin
Afzaal Ahmad Zeeshan17-Feb-17 20:56
professionalAfzaal Ahmad Zeeshan17-Feb-17 20:56 
GeneralRe: Returning JSON From RESTful WCF Pin
Liagapi17-Feb-17 21:26
Liagapi17-Feb-17 21:26 
Questionc# Pin
Member 944496917-Feb-17 4:01
Member 944496917-Feb-17 4:01 
increment a file path if already exists using mediafire,conversion options and mega data while saving a video in c#

here is my code

try
{

String path = open.FileName;
var inputFile = new MediaFile { Filename = path };



using (var engine = new Engine())
{
engine.GetMetadata(inputFile);

do
{

newLocation = "C:\\Users\\" + server + "\\Videos\\Matchbox\\keeper starts(" + filecount.ToString() + ").mp4";
filecount++;

if (!exists)
{
System.IO.Directory.CreateDirectory(folderLocation);
MessageBox.Show("Folder doesn't exist, Matchbox folder created!!");
}

var outputFile = new MediaFile { Filename = newLocation };
var options = new MediaToolkit.Options.ConversionOptions();

Difference = outTime - inTime;

options.CutMedia(TimeSpan.FromSeconds(inTime), TimeSpan.FromSeconds(Difference));

string message = "Please wait a few minutes while converting a file";
string title = "Warning!!!";
MessageBoxButtons buttons = MessageBoxButtons.OK;
DialogResult = MessageBox.Show(message, title, buttons);


engine.Convert(inputFile, outputFile, options);
MessageBox.Show("Success");
} while (File.Exists(newLocation));


// inTime = outTime = Difference = 0;
}
}
catch (Exception ex)
{
MessageBox.Show("" + ex.ToString());
}
AnswerRe: c# Pin
Dave Kreskowiak17-Feb-17 4:07
mveDave Kreskowiak17-Feb-17 4:07 
AnswerRe: c# Pin
Eddy Vluggen17-Feb-17 4:13
professionalEddy Vluggen17-Feb-17 4:13 
AnswerRe: c# Pin
Patrice T18-Feb-17 15:07
mvePatrice T18-Feb-17 15:07 
AnswerRe: c# Pin
John C Rayan19-Feb-17 23:46
professionalJohn C Rayan19-Feb-17 23:46 
QuestionOpensource vocabulary services? Pin
Srinubabu Ravilla16-Feb-17 22:18
professionalSrinubabu Ravilla16-Feb-17 22:18 
AnswerRe: Opensource vocabulary services? Pin
OriginalGriff16-Feb-17 22:22
mveOriginalGriff16-Feb-17 22:22 
GeneralRe: Opensource vocabulary services? Pin
Srinubabu Ravilla16-Feb-17 22:33
professionalSrinubabu Ravilla16-Feb-17 22:33 
GeneralRe: Opensource vocabulary services? Pin
Dave Kreskowiak17-Feb-17 4:05
mveDave Kreskowiak17-Feb-17 4:05 
AnswerRe: Opensource vocabulary services? Pin
Eddy Vluggen17-Feb-17 2:23
professionalEddy Vluggen17-Feb-17 2:23 
QuestionMaking Excel Cells Read Only Pin
dpasswat15-Feb-17 9:52
dpasswat15-Feb-17 9:52 
AnswerRe: Making Excel Cells Read Only PinPopular
Michael_Davies15-Feb-17 10:27
Michael_Davies15-Feb-17 10:27 
GeneralRe: Making Excel Cells Read Only Pin
ZurdoDev16-Feb-17 1:58
professionalZurdoDev16-Feb-17 1:58 
GeneralRe: Making Excel Cells Read Only Pin
Patrice T16-Feb-17 11:23
mvePatrice T16-Feb-17 11:23 
GeneralRe: Making Excel Cells Read Only Pin
Michael_Davies16-Feb-17 20:45
Michael_Davies16-Feb-17 20:45 
AnswerRe: Making Excel Cells Read Only Pin
Patrice T16-Feb-17 11:47
mvePatrice T16-Feb-17 11:47 
GeneralRe: Making Excel Cells Read Only Pin
dpasswat17-Feb-17 10:21
dpasswat17-Feb-17 10:21 
GeneralRe: Making Excel Cells Read Only Pin
Patrice T17-Feb-17 11:24
mvePatrice T17-Feb-17 11:24 

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.