Daiko Games
Daiko Games
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
thanks I will look into it
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
that is true 🙂
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
yup
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
I will try that
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
you are absolutely right 🙂
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
well yeah that is true 🤔
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
ok
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
No I just want to run the cmd File that is my Problem not that I could run it directly via C# with the thing you told me - but I will surely look into that too
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
It works when I open the cmd file normally
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
if I want to convert my file I would need to write that with cmd directly but it can also be done by making a cmd File which i did and by running the code via C#, as I am making a Converter out of it
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
I will look into the Use Shell Executive and try to find a solution
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
it needs the following string to work as I want it :nffdec -swf2exe wrapper "FlashPlayerPath" "FlashFile" - this is how it converts a swf File into an .exe
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
The Problem is that it needs Command Line Input to convert a File Format into another and that is what i am doing here- but thanks for the help I will look into that
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
The Names are completely correct and I checked the cmd File. If I open the File that has been created it runs perfectly but if I try to run it with C# it doesn´t work
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
This is just a example of how it looks Like, I made a FLASHRUNNER Folder and added ruffle into it. I didn´t specify my whole Project here - my Problem is that is is too big to show it here I would need Discord Nitro - but I don´t need it
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Platform.Storage;
namespace Project
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}

public void Example( object sender, RoutedEventArgs args){
string swfFile = Path.Combine(Foldername,
Path.GetFileNameWithoutExtension(Filename) + ".swf");
string OriginalFlashPlayer64 = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\FlashRunner\ORIGINALFLASHRUNNER\ruffle-nightly-2025_03_25-windows-x86_32", "ruffle.exe");
string NewFlashPlayerPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\Converted\" + Path.GetFileNameWithoutExtension(Filename) + ".exe");
File.Copy(OriginalFlashPlayer64, NewFlashPlayerPath, true);
string NewFileToDeleteAfterConversion = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"\FFDEC\Converted\" + Path.GetFileNameWithoutExtension(Filename) + ".swf");
File.Copy(swfFile, NewFileToDeleteAfterConversion, true);
string BatchFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\", "ConvertSWFTOEXE.cmd");
File.WriteAllText(BatchFile, "cd");
File.AppendAllText(BatchFile, "\nffdec -swf2exe wrapper \"" + NewFlashPlayerPath + "\" \"" + NewFileToDeleteAfterConversion + "\"");
string CopiedFlashPlayerPath = Path.Combine(Foldername + Path.GetFileNameWithoutExtension(Filename) + ".exe");
Process.Start(BatchFile);
File.Copy(NewFlashPlayerPath, CopiedFlashPlayerPath, true);
}
}
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Platform.Storage;
namespace Project
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}

public void Example( object sender, RoutedEventArgs args){
string swfFile = Path.Combine(Foldername,
Path.GetFileNameWithoutExtension(Filename) + ".swf");
string OriginalFlashPlayer64 = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\FlashRunner\ORIGINALFLASHRUNNER\ruffle-nightly-2025_03_25-windows-x86_32", "ruffle.exe");
string NewFlashPlayerPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\Converted\" + Path.GetFileNameWithoutExtension(Filename) + ".exe");
File.Copy(OriginalFlashPlayer64, NewFlashPlayerPath, true);
string NewFileToDeleteAfterConversion = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"\FFDEC\Converted\" + Path.GetFileNameWithoutExtension(Filename) + ".swf");
File.Copy(swfFile, NewFileToDeleteAfterConversion, true);
string BatchFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\", "ConvertSWFTOEXE.cmd");
File.WriteAllText(BatchFile, "cd");
File.AppendAllText(BatchFile, "\nffdec -swf2exe wrapper \"" + NewFlashPlayerPath + "\" \"" + NewFileToDeleteAfterConversion + "\"");
string CopiedFlashPlayerPath = Path.Combine(Foldername + Path.GetFileNameWithoutExtension(Filename) + ".exe");
Process.Start(BatchFile);
File.Copy(NewFlashPlayerPath, CopiedFlashPlayerPath, true);
}
}
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
$codegif
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
cs string swfFile = Path.Combine(Foldername, Path.GetFileNameWithoutExtension(Filename) + ".swf");
string OriginalFlashPlayer64 = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\FlashRunner\ORIGINALFLASHRUNNER\ruffle-nightly-2025_03_25-windows-x86_32", "ruffle.exe");
string NewFlashPlayerPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\Converted" + Path.GetFileNameWithoutExtension(Filename) + ".exe");
File.Copy(OriginalFlashPlayer64, NewFlashPlayerPath, true);
string NewFileToDeleteAfterConversion = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"\FFDEC\Converted" + Path.GetFileNameWithoutExtension(Filename) + ".swf");
File.Copy(swfFile, NewFileToDeleteAfterConversion, true);
string BatchFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC", "ConvertSWFTOEXE.cmd");
File.WriteAllText(BatchFile, "cd");
File.AppendAllText(BatchFile, "\nffdec -swf2exe wrapper "" + NewFlashPlayerPath + "" "" + NewFileToDeleteAfterConversion + """);
string CopiedFlashPlayerPath = Path.Combine(Foldername + Path.GetFileNameWithoutExtension(Filename) + ".exe");
Process.Start(BatchFile);
File.Copy(NewFlashPlayerPath, CopiedFlashPlayerPath, true);
cs string swfFile = Path.Combine(Foldername, Path.GetFileNameWithoutExtension(Filename) + ".swf");
string OriginalFlashPlayer64 = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\FlashRunner\ORIGINALFLASHRUNNER\ruffle-nightly-2025_03_25-windows-x86_32", "ruffle.exe");
string NewFlashPlayerPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\Converted" + Path.GetFileNameWithoutExtension(Filename) + ".exe");
File.Copy(OriginalFlashPlayer64, NewFlashPlayerPath, true);
string NewFileToDeleteAfterConversion = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"\FFDEC\Converted" + Path.GetFileNameWithoutExtension(Filename) + ".swf");
File.Copy(swfFile, NewFileToDeleteAfterConversion, true);
string BatchFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC", "ConvertSWFTOEXE.cmd");
File.WriteAllText(BatchFile, "cd");
File.AppendAllText(BatchFile, "\nffdec -swf2exe wrapper "" + NewFlashPlayerPath + "" "" + NewFileToDeleteAfterConversion + """);
string CopiedFlashPlayerPath = Path.Combine(Foldername + Path.GetFileNameWithoutExtension(Filename) + ".exe");
Process.Start(BatchFile);
File.Copy(NewFlashPlayerPath, CopiedFlashPlayerPath, true);
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
string swfFile = Path.Combine(Foldername, Path.GetFileNameWithoutExtension(Filename) + ".swf"); string OriginalFlashPlayer64 = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\FlashRunner\ORIGINALFLASHRUNNER\ruffle-nightly-2025_03_25-windows-x86_32", "ruffle.exe"); string NewFlashPlayerPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC\Converted" + Path.GetFileNameWithoutExtension(Filename) + ".exe"); File.Copy(OriginalFlashPlayer64, NewFlashPlayerPath, true); string NewFileToDeleteAfterConversion = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"\FFDEC\Converted" + Path.GetFileNameWithoutExtension(Filename) + ".swf"); File.Copy(swfFile, NewFileToDeleteAfterConversion, true); string BatchFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + @"FFDEC", "ConvertSWFTOEXE.cmd"); File.WriteAllText(BatchFile, "cd"); File.AppendAllText(BatchFile, "\nffdec -swf2exe wrapper "" + NewFlashPlayerPath + "" "" + NewFileToDeleteAfterConversion + """); string CopiedFlashPlayerPath = Path.Combine(Foldername + Path.GetFileNameWithoutExtension(Filename) + ".exe"); Process.Start(BatchFile); File.Copy(NewFlashPlayerPath, CopiedFlashPlayerPath, true);
44 replies
CC#
Created by Daiko Games on 4/2/2025 in #help
Cmd File can´t run on Process.Start(Filename);
This is the Full code without the main method
44 replies