Copying File Error (not working)
Hello ! I was doing an app with Microsoft visual studio 2022 and i wanted to copy an exe to file but it's not working. I dont know how to fix it
38 Replies
Most interesting code (where i got the error) :
its saying that it cant find the file, so the path has to be wrong
(or the file doesnt exist)
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
dammit
stupid sandbox
this works
Don't put hardcoded path
Combine paths with Path.Combine()
don't forget to set the Build Action to Content for the file as well
Thanks guys im going to test it tomorrow !
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Path.Join
who can help solving this error ?
InvalidOperatorExecption
i think its working but i got this error
What's the error
here
this
at Program.cs
but what does it says
It just shows where it is
InvalidOperatorExecption
Click this
bottom left
ok
i got 20 error 💀
-_-
btw its french
bro i think i give up 💀
im going to restart
before you deleting a control on form
click control first
and delete its events from Properties window
Right Click -> Reset bla bla (i dont remember)
then remove its code
otherwise its gonna throw an error
@Samarichitane look he tell that path is not correct but it is
what does it says there
it say that he didn't found the path
Are you running vs as admin mode ?
no
try that
alr
same thing 💀
its weird 💀 💀
the same path..
but not the same...
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View