Execute File Lnk In Program?
Jan 9, 2011I need to execute a .lnk file in vb.net (lnk file that points at an exe file).[code]...
View 1 RepliesI need to execute a .lnk file in vb.net (lnk file that points at an exe file).[code]...
View 1 RepliesI am trying to execute a program with switches that ends up with a shortcut being too long and exceeds the 260 character limit for shortcuts in windows XP:
[Code]...
i'm still at the beginner level in vb.net..i want to know...how to convert my program/code/file to execute files?
View 1 RepliesIs there a way i can execute a CLI program and have it output or return what the CLI program sais, such as ping etc.
View 3 RepliesI would like to ask for a recommendation for my project. Basically, it's a scheduled program that shall run at a given period of time, for example, 6:00 pm daily, it includes importing an excel file and inserting it in a sql table. I have my codes with me, but I dont know how to execute this program automatically.
View 3 RepliesMy basis of my programForm 1 has functions, which are controlled through button1 which sends an email, At the end of the send email function I have Dialog1.ShowDialog() Which opens Dialog1 to say "Email has been sent" With a button, I want this button to execute the whole program, How do I do this?
View 2 RepliesThere is a "submit" button and a textbox, when the button is pressed, i want to connect to access database and search for the entered text in the textbox . if true i want to show "okay" a string .
View 4 Repliesexecute an action every 5 program starts?
View 8 RepliesI want to make a program with a button and a textbox. When i click the button the program (don't know how) writes the text from the textbox in a process called test.exe. Test.exe is a cmd like window, there is only one place to write on it. How can i make it happen?
View 4 RepliesI have to execute the command line program takeown.exe[url]...
from my console application, I've tried this cose but received no output and the program does nothing[code]...
I am executing a autoit script when autoit is installed in the system by using the following code
objProcess = New System.Diagnostics.Process()
objProcess.StartInfo.Arguments = "abc"
objProcess.StartInfo.FileName = "Z:Scripts est.au3"
objProcess.Start()
But I need to do same by giving a path to a unzipped files instead of installing it on system. e.g My autoit path where I extracted files are z:Softwareautoit3.exe and my scripts path is "Z:Scripts est.au3".
I want to make a query like this.[url]...
When I test it on my mysql query browser, it works well.
Now, I want to execute it in VB with mysqlCommand. of course @rownum is defined as a parameter and waiting for its value. How can I execute that query in VB?
Is there any command in Visual basic that can execute a function every time I choose just like setInterval in Javascript
View 1 RepliesI'm developing a web application that displays items from a work queue to a user. When an item is selected I have the app lock that item out so no other user can select it. By hitting the back button in the app it unlocks the item.
I want to be able to unlock the item if the user hits the backspace key. I know what code I need to unlock it. I just need to know how to make the code execute on backspace key stroke.
What I am trying to do is go to a website using a webbrowser, and then simulate a click. I can do this easy enough when the click is on a regular button, not handling javascript. But it seems that the website has a javascript function handling the click that I want to simulate[code]...
View 1 RepliesIm trying to execute a winform app from my website (asp .net), this winforms app its execute in the server side for processing information and send email, but i need to pass some arguments, from the webpage i know how to do it, but im asking how to catch the arguments in the winform app?[code]...
View 4 Repliestrying to execute an .exe (another program) from excel, where shall i start?
View 1 RepliesI'm writing a program and have run into a bit of a snag. I have the code perform a button click on certain buttons, the reason for this is I have a bunch of buttons that each do something and one that does everything automatically. I suppose I could rewrite everything under that one button but that would essentially double the size of my program, I could use an if statement to catch the fact that the program is in automatic mode but that would be about 15 conditions (not looking forward to writing that statement ;p)
Clicking the buttons is a nice simple, clean solution. The exception being the program performs the click then continues on executing the rest of the code in the actually clicked button while at the same time executing the code called by the code click. Main problem with this is the data that needs to be populated by the code click isn't being populated fast enough for the code in the main button so then there is errors, blank data, program doing nothing. A simple sw timer to delay could work (I know how to make one of those) but the problem with that is the program is executing against a webpage and if the webpage takes a few seconds longer to load then anticipated everything is out of wack again. I'm looking for a simplish way to cause the program to wait for ALL code called by any raised event to finish before proceeding.
i.e. Call Button.clickEvent > Wait for code and subroutines executed by Button.clickEvent to finish > continue with rest of code in button.
Below is the code I'm using so far for the user clicked button.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Button4.PerformClick()
'Need to wait for all code executed by Button4 and anything it calls to finish
x = 0
[CODE]..........................
How do I make it so that after the user selects a program it gets executed?Also can I the the OpenFileDialog1 to anything else?
View 13 RepliesI'm trying to access an SSRS url in my app via backgroundworker. I've managed to generate events via the backgroundworker when my app starts. But how do I go to an url without Internet Explorer or any other browser starting up? I want to prime the ssrs server on the start of my application so the first report that is generated with it isn't slow.
View 6 RepliesWhat i want to happen is for the dictionary keys and items to be overwritten each time it is executed, as the data needs to be up to date.
View 3 RepliesI'm trying to execute a program on a remote machine using this code
Dim objProcess As New System.Diagnostics.Process
objProcess.StartInfo.FileName = "cmd.exe"
objProcess.StartInfo.Arguments = " /c PSExec /accepteula \NTAPPMTMIGL01 -u $AdminUsrLocal -p tjdsi44 c:winntMicrosoft.NETFrameworkv2.0.50727gacutil.exe"
[code]....
If I use it, it works since I'm an admin but if someone else use it, I got "The system cannot find the file specified."Is there any other program I can use that can impersonate, I've already tried xcmd.exe but it doesm't work either.
When I try to print my record using ReportViewer.exe error that given is - "The Array s Fixed or Temporarily Locked (Run Time error When I debug through the code error is - "Method 'AddRows of object 'ICrystalDataObject' failed"
Dim cdoRecordSet As CrystalComObject
Set cdoRecordSet = CreateObject("CrystalDataObject.CrystalComObject")
[code].....
I need to write VB program to open and read text file, store each field (separated by comma) into an array. In the first array, it's an excel file and I need to execute it, and once opened in excel, there is a macro program inside and i need also to exceute using VB.
sample content of textfile:
C:principalsinventory.xls, MacroInventoryReport, 1, 3:00AM
----------
C:principalsinventory.xls, MacroNearExpiringReport, 1, 4:00AM
I started this tutorial on sub procedures and am having trouble trying to get this program to execute properly. The problem lies with the total. I am trying to figure out the math part of it. When I hit F5 I can see this
Item Quantity Price.
Pizza Slices
Fries
Soft Drinks
Total
But I can't get them to add up and display the quantity and price. I tried the ByVal and ByRef code but am not sure if I did it right
Here is the code that I have so far:
Public Class Form1
Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click
Dim pizza, fries, drinks, total As Double
[CODE]...
I have updated a VB 2008 Winform program and published it on a shared folder. The customer can no longer use it because, at launch time, it claimed for SQLServer.Diagnostic.STrace v 10.0.0.0, what it did not before. The only thing I can think at is that I have also recently installed VS 2010 on my PC. Does it change the way VS 2008 work ? How can I solve this issue on the customer PC ?
View 2 Repliesxecute a exe filwhich is stored as an isolatedstoragefile.In thebelow i stored file.exe from c: solatedfile.exe. i want to execute isolatedfile.exe like this.
Process.Start(isolatedfile.exe).How can i do it?Regards,Senthil.
Dim file_name As String = "c:file.exe"Dim isolated_file_name As String = "isolatedfile.exe"
[code].....
I have a sample.cmd file that has the following code.
dir/b/p D:Satheesh > TableOfContents.txt
When I run the bathc file seperately I can able to get a text file that contains all files in the folder.
But when I execute the cmd file from VB code using Shell function, I am not getting the text file created.
I created a *.bat file : osql -Usa -Paugust -SNgocThach -iMYDATABASE.SQL When it run at cmd, it ok. My database has just been setup. Now, I want to setup my database use VB.NET. How can i do
View 1 RepliesFor example I got Form1. And I want to get a jarfile inside it just like its possible for .swd and .pdf files.I thought of something like a webbrowser, going to a page with the jar file, but that Isnt really brilliant as the webbrowser might be slow, or cause problems.
View 1 Replies