wawa
wawa
Explore posts from servers
CC#
Created by wawa on 6/25/2023 in #help
✅ Is this code malicious? Someone sent me it
20 replies
CC#
Created by wawa on 2/19/2023 in #help
✅ this extractor writes the project name + the file name how do I make it just say the file name
This extractor which I got from stackoverflow because I dont know how to code in c# that much which extracts from embedded resource writes the project name eg if the file was named music.wav and the project name was extract then when it outputs it would rename the extracted file to "extract.music.wav" instead of just "music.wav" How would I make this code keep the original name
using System;
using System.Reflection;
using System.IO;
using System;

namespace program
{
class prog
{
public static void Main(string[] args)
{
var assembly = Assembly.GetExecutingAssembly();

var names = Assembly.GetExecutingAssembly().GetManifestResourceNames();

foreach (string filename in names)
{
var stream = assembly.GetManifestResourceStream(filename);
var rawFile = new byte[stream.Length];

stream.Read(rawFile, 0, (int)stream.Length);

using (var fs = new FileStream(filename, FileMode.Create))
{
fs.Write(rawFile, 0, (int)stream.Length);
}
}
}
}
}
using System;
using System.Reflection;
using System.IO;
using System;

namespace program
{
class prog
{
public static void Main(string[] args)
{
var assembly = Assembly.GetExecutingAssembly();

var names = Assembly.GetExecutingAssembly().GetManifestResourceNames();

foreach (string filename in names)
{
var stream = assembly.GetManifestResourceStream(filename);
var rawFile = new byte[stream.Length];

stream.Read(rawFile, 0, (int)stream.Length);

using (var fs = new FileStream(filename, FileMode.Create))
{
fs.Write(rawFile, 0, (int)stream.Length);
}
}
}
}
}
6 replies
CC#
Created by wawa on 2/12/2023 in #help
❔ ✅ ✅ Why does $singlefile make the .exe file so large
Hey I didnt want loads of files so I used $singlefile method and now the exe is 64 megabytes for just a console.writeline hello world program does anyone have any idea of how to lower it
26 replies
CC#
Created by wawa on 2/2/2023 in #help
✅ IGNORE PEOPLE
my place for testing commands
18 replies