Login Register






[help]need some vb.net code . filter_list
Author
Message
[help]need some vb.net code . #1
hello there ,
am New to vb.net , i have a littel probleme :

i need that the my vb.net gui opens a password recovery than save the password in a .txt
so here is the code that i use :

Code:
shell( application.startuppath + "/recover/soft.exe /stext" & application.startuppath + "/recover/pass.txt" )

it doesn't work , it says that he cant find the file that i want to open Sad .

here is the simple batch code that i want to convert in vb.net :
Code:
start soft.exe /stext pass.txt

note that the file that i want to open is in a folder named "recover" .

thanks for helping me .

Reply

RE: [help]need some vb.net code . #2
Well, you can use directly batch in VB.NET Smile

Here is the code with the batch:

Shell("start soft.exe /stext pass.txt")

Hope it was what you were asking for Tongue
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply

RE: [help]need some vb.net code . #3
originally i wanted the code in vb.net that do what the batch code does Smile
but i tried what you said and its says that he cant find the f**** file , may be i should import some lib ?

Reply

RE: [help]need some vb.net code . #4
(02-27-2011, 01:28 PM)9toes Wrote: originally i wanted the code in vb.net that do what the batch code does Smile
but i tried what you said and its says that he cant find the f**** file , may be i should import some lib ?

hm... ok, tell me exactly what you want to do.

Because the code you provided checks for the file in the same directory. Maby problem is there?
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply

RE: [help]need some vb.net code . #5
all right , what i want to do is that my vb.net soft opens the password recovery , than save the result of the password recovery in a .txt file , i'll use nirsoft Biggrin .

so i copied the nirsoft in the same directory as the .exe , that used the code that you gave to me
Code:
Shell("start soft.exe /stext pass.txt")
and it doesn't work Sad .

i tried this too :
Code:
Shell(Application.StartupPath + "/recover/soft.exe /stext" & " " & Application.StartupPath + "/recover/pass.txt",AppWinStyle.Hide)
doesn't work as well Sad , he reports that he cant find the file .



edit : HERE is the solution : its very simple :
Code:
Process.Start("soft.exe", "/stext pass.txt")

thanks for help bro Smile .

Reply