Skip to content

Commit

Permalink
QTConverter now checks if Profile path is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
pgodwin committed Jul 23, 2017
1 parent 515fe24 commit f3332a5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
13 changes: 13 additions & 0 deletions QTCommon/obj/Debug/QTCommon.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,16 @@ C:\Users\pete\Documents\GitHub\68kTube\QTCommon\obj\Debug\AxInterop.QTOControlLi
C:\Users\pete\Documents\GitHub\68kTube\QTCommon\obj\Debug\QTCommon.csproj.ResolveComReference.cache
C:\Users\pete\Documents\GitHub\68kTube\QTCommon\obj\Debug\QTCommon.dll
C:\Users\pete\Documents\GitHub\68kTube\QTCommon\obj\Debug\QTCommon.pdb
C:\Users\pete\Repo\68kTube\QTCommon\obj\Debug\QTCommon.csprojResolveAssemblyReference.cache
C:\Users\pete\Repo\68kTube\QTCommon\obj\Debug\Interop.QTOControlLib.dll
C:\Users\pete\Repo\68kTube\QTCommon\obj\Debug\Interop.QTOLibrary.dll
C:\Users\pete\Repo\68kTube\QTCommon\obj\Debug\AxInterop.QTOControlLib.dll
C:\Users\pete\Repo\68kTube\QTCommon\obj\Debug\QTCommon.csproj.ResolveComReference.cache
C:\Users\pete\Repo\68kTube\QTCommon\obj\Debug\QTCommon.dll
C:\Users\pete\Repo\68kTube\QTCommon\obj\Debug\QTCommon.pdb
C:\Users\pete\Repo\68kTube\QTCommon\bin\Debug\PlaceHolder.mp4
C:\Users\pete\Repo\68kTube\QTCommon\bin\Debug\QTCommon.dll
C:\Users\pete\Repo\68kTube\QTCommon\bin\Debug\QTCommon.pdb
C:\Users\pete\Repo\68kTube\QTCommon\bin\Debug\Interop.QTOControlLib.dll
C:\Users\pete\Repo\68kTube\QTCommon\bin\Debug\AxInterop.QTOControlLib.dll
C:\Users\pete\Repo\68kTube\QTCommon\bin\Debug\Interop.QTOLibrary.dll
8 changes: 8 additions & 0 deletions QTConverter/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
Expand Down Expand Up @@ -41,6 +42,13 @@ static void Main(string[] args)
string url = args[1];
string output = args[2];

if (!File.Exists(profile))
{
Console.Write("Invalid Profile specified");
Environment.Exit(100);
return;
}

Console.WriteLine("Converting {0} with profile {1}", url, profile);
Convert(profile, url, output);
stopwatch.Stop();
Expand Down
3 changes: 3 additions & 0 deletions QTConverter/QTConverter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ClientTest|AnyCPU'">
<OutputPath>bin\ClientTest\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
7 changes: 7 additions & 0 deletions QTConverter/obj/Debug/QTConverter.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ C:\Users\pete\Documents\GitHub\68kTube\bin\QTConverter.pdb
C:\Users\pete\Documents\GitHub\68kTube\QTConverter\obj\Debug\QTConverter.csprojResolveAssemblyReference.cache
C:\Users\pete\Documents\GitHub\68kTube\QTConverter\obj\Debug\QTConverter.exe
C:\Users\pete\Documents\GitHub\68kTube\QTConverter\obj\Debug\QTConverter.pdb
C:\Users\pete\Repo\68kTube\bin\QTConverter.exe.config
C:\Users\pete\Repo\68kTube\QTConverter\obj\Debug\QTConverter.exe
C:\Users\pete\Repo\68kTube\QTConverter\obj\Debug\QTConverter.pdb
C:\Users\pete\Repo\68kTube\QTConverter\obj\Debug\QTConverter.csprojResolveAssemblyReference.cache
C:\Users\pete\Repo\68kTube\bin\PlaceHolder.mp4
C:\Users\pete\Repo\68kTube\bin\QTConverter.exe
C:\Users\pete\Repo\68kTube\bin\QTConverter.pdb

0 comments on commit f3332a5

Please sign in to comment.