I have a small problem with generating the shortcut. Actually generating shortcut works no problem but I wont to add other few lines to shortcut that makes me problems that I chouldnt work out. For example :
I need to have the path of my shortcut like this : C:\test.vbs "C:/somefile.exe" somedata [email protected] password
I use this code :
textbox3 is path of somefile. somedata is selected item from combobox. textbox1 is email. textbox2 is passwordCode:MyShortcut.TargetPath = @"C:/test.vbs" + textBox3.Text + " " + comboBox1.Text + " " + textBox1.Text + " " + textBox2.Text;
I can not add the path on textbox3 ( C:/somefile.exe ) the program gets error. what am I doing wrong here ?




Reply With Quote