Try using & rather than +.
I am making a program that downloads programs to %appdata% folder, i was able to get to the folder, i have downloading done, but when i debug and test, i get this error! It is 100% correct but it isnt working (using imports system.environment, and it worked before).
The code i use was "dim launch as string = getfolderpath(specialfolder.applicationdata + "program.exe" with "file.exists". I googled it but no avail . Please help!
Ps using the mobile version.
HOW TO GET A ADMIN/MODS ATTENTION:
1) Find a reason to get their attention.
2) Post a outside link to a broken file (Such as Med-ia Fire, Mega, and even youtube (Since they hate outside links so much)).
3) Yell and call other people ******s
4) Become a closet homosexual
5) Watch as the mods try to ban you, but cant because its a fake url and they fell for your trick.
6) Report them to a higher-admin.
7) Watch them get demoted and banned
ᕙ( ͡° ͜ʖ ͡°)ᕗ OBEY MY DOG ᕙ( ͡° ͜ʖ ͡°)ᕗ
[url]https://www.youtube.com/watch?v=7cw2DllsZmc]https://www.youtube.com/watch?v=7cw2DllsZmc[/video]
Try using & rather than +.
Both "+" and "&" can be used for concatenation in Vb.net. However vb.net understands the context of "&" better and won't end up attempting to "+" (add) the string, which will give you the error you mentioned above. Your result is a Valid String but not a Valid Double. Usually this is a "problem" you see when Option Explicit is ON because Option Explicit ON will disallow the explicit conversion of String to Double. But it's a good idea to keep it on, so "&" is the better method.
Kevin had it right, I just wanted to quickly explain why, because (IMO) if you don't understand why, you may continuously make the same "mistake".
I tried with the & but it still gives me an error.
"Conversion from string "26\program.exe" to type 'integer' is not valid" using the same source but with an ampersand.
Edit; nevermind. /solved i just used a different method.
Last edited by ecaep42; 03-05-2012 at 09:17 PM.
HOW TO GET A ADMIN/MODS ATTENTION:
1) Find a reason to get their attention.
2) Post a outside link to a broken file (Such as Med-ia Fire, Mega, and even youtube (Since they hate outside links so much)).
3) Yell and call other people ******s
4) Become a closet homosexual
5) Watch as the mods try to ban you, but cant because its a fake url and they fell for your trick.
6) Report them to a higher-admin.
7) Watch them get demoted and banned
ᕙ( ͡° ͜ʖ ͡°)ᕗ OBEY MY DOG ᕙ( ͡° ͜ʖ ͡°)ᕗ
[url]https://www.youtube.com/watch?v=7cw2DllsZmc]https://www.youtube.com/watch?v=7cw2DllsZmc[/video]
NextGen1 (03-05-2012)
Apparently it's been solved. But in the future we request (if nothing else) Declarations and any source related to the issue "&" the source before and after the break.
Hassan (03-06-2012)
HOW TO GET A ADMIN/MODS ATTENTION:
1) Find a reason to get their attention.
2) Post a outside link to a broken file (Such as Med-ia Fire, Mega, and even youtube (Since they hate outside links so much)).
3) Yell and call other people ******s
4) Become a closet homosexual
5) Watch as the mods try to ban you, but cant because its a fake url and they fell for your trick.
6) Report them to a higher-admin.
7) Watch them get demoted and banned
ᕙ( ͡° ͜ʖ ͡°)ᕗ OBEY MY DOG ᕙ( ͡° ͜ʖ ͡°)ᕗ
[url]https://www.youtube.com/watch?v=7cw2DllsZmc]https://www.youtube.com/watch?v=7cw2DllsZmc[/video]
Because you had your closing parenthesis in the wrong spot for 'GetFolderPath' function.
It *should* have been:
Code:Dim appDataPath As String = IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "program.exe")
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
GOD DAMN ! SUCH A NOOB.
Marked Solved.