37 Replies
Hi guys
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
code :
but i got the error :
Did you run it as admin?
no
Try that.
how to run it as admin
?
Run Visual Studio as admin
that will make all programs you debug admin
oky
Same @Buddy
Oh, you want to delete a directory?
yes
Oh, lol.
Use Directory.Delete
;-;
tysm bro
u saved my life
nvm u destroyed my life
lmao
@Buddy
Check overload
what is overload ?
The ability to redefine a function in different forms (method overloading), for example:
One method takes only in a string argument, the overload method maybe takes in an array of characters.
us
no result
; /
$paste
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
Post your current code
full code ?
Nah, just the important parts.
Like what was posted above
Specifically where you call Directory.Delete
okay
BlazeBin - oqvahemppfbu
A tool for sharing your source code with the world!
You did not use the overload
Did you bother clicking this link at all?
Same thing with your previous thread, atleast put some effort into it and don't respond with "Doesn't work" whilst not giving any context
i used this
string ThemePath = (@"C:/TrexLauncher Minecraft Bedrock/Launcher/Theme/Theme");
try
{
Directory.Delete(ThemePath, true);
}
catch (IOException)
{
Thread.Sleep(0);
Directory.Delete(ThemePath, true);
}
this.Close();
it works
Good!
Exactly what I was pointing towards! 😄
What is the point of the catch statement?