Free Step Dodge

Heikou
Heikou
What's up? Tell me what you're trying to do and link me to the relevent stuff on pastebin or w/e's convenient.
Fiend Busa
Fiend Busa
Heikou
Heikou
If you have it print out the location of the file before going to download it, can you check to see if the URL's correct?
Fiend Busa
Fiend Busa
Yea, I had it print out the location already and it was correct, it also created the directory as well

URL is correct, downloaded and tested to

ugh im so stumped lol >.>
Fiend Busa
Fiend Busa
oh wait wtf, i just noticed its downloading it to my desktop, the hell lol?
Heikou
Heikou
But the location's correct and it created a new folder? Are you running this application from the desktop?
Fiend Busa
Fiend Busa
nope im running it through visual studio

example the I select a folder and the location string outputs: C:\Users\Gary\Desktop\Claymore (Claymore being the folder I selected) but it still seems to want to download the file to the desktop
Heikou
Heikou
If you hardcode the location, does it make a difference? (I should really just boot Windows up so I can test this out myself.)
Fiend Busa
Fiend Busa
If I hardcode it myWebclient.DownloadFile(Link, @"C:\Users\Gary\Desktop\Claymore\Update.exe"); Then it works fine
Heikou
Heikou
Try appending "Update.exe" to the string Location before downloading. Might have something to do with the syntax. Not too sure since I don't use C# myself.
Fiend Busa
Fiend Busa
Update.exe is the name it gives to the downloaded file
Fiend Busa
Fiend Busa
lol fuck this shit is annoying me xD
Heikou
Heikou
Right, but just go ahead and add "Update.exe" before you run DownloadFile because you said it works when you hardcode it. Should look something like

Location = Location + "Update.exe";
myWebclient.DownloadFile(Link, Location);

May just have something to do with syntax and how it compiles.
Fiend Busa
Fiend Busa
nope then it just creates a folder called update.exe
Heikou
Heikou
What I'm meaning to say is the location should be whatever you set it to with "Update.exe" added on to the end. So,

string Location = SelectFolder.SelectedPath;
System.IO.Directory.CreateDirectory(Location + @"\NewVersion");
Location = Location + "NewVersion\Update.exe";
myWebclient.DownloadFile(Link, Location + "Update.exe");
Heikou
Heikou
I don't write in C# so I don't know the syntax, but you should be able to get the gist of what I'm doing here.
Heikou
Heikou
Last line in the post before last should be
myWebclient.DownloadFile(Link, Location);
ALL DOA6 DOA5 DOA4 DOA3 DOA2U DOAD
Top