VS 2010 - Sending Commands To Process?
Jan 25, 2010
Dim movie As String = TextBox1.Text
Dim subtitle As String = TextBox2.Text
Dim box As New Process
box.StartInfo.FileName = "MP4Box.exe"
[code].....
When i click a button this code is executed. But it wont execute the command "MP4Box.exe -ttxt " + """" + subtitle + """" Why?
View 7 Replies
ADVERTISEMENT
Feb 15, 2012
I need to build an forms app that 'posts' or 'sends' text commands to an external console process, called Minecraft Server It is a java-based process, filename 'minecraft_server.jar'. Run by my computer via 'java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui'. The Process ID I assume would change each time it's run. This process can be downloaded here: [URL]
I am guessing that I need to:
1) find the Process ID for it, based on its process details, such as Command Line
2) figure out a way to 'post' these commands, commands such as "stop" into the console window
I cannot have this process launched by my VB project.
View 5 Replies
Jan 11, 2009
I am writing a windows gui front-end for a game that uses 6 open cmd console windows. The cmd windows are already open, I do not need to launch them, I just need to be able to send a command to a named cmd window by pressing a button on my Visual Basic 2005 Express form.
[Code]....
View 3 Replies
Jan 12, 2011
How can I send commands to LAN Printer?
View 5 Replies
Sep 3, 2011
I'm writing a program in VB.NET 2010 that will connect to the PICkit(TM) 1 FLASH Starter Kit's USB programmer and send it commands to turn on or off something connected to the attached eLab16m board, for example, an LED. This is all done by using the libhid.net DLL. The vendor id is &H4D8 and the product id is &H32.
Update I've written a console program that outputs what's happening. Here's the output:Where it says device with report id 0x10, I am trying to query the firmware version from the USB Programmer.Update 2 I've fixed the problem with the Wacom Bamboo tablet by uninstalling its software and drivers from my computer. The error has disappeared from the command line, but it still shows the 0x10 error.
View 1 Replies
Jun 24, 2011
Is it possible to send DOS commands, using VB 2008, from one server to another server on the network? Perhaps using the process class?
View 1 Replies
May 1, 2010
What I need to be able to do is send a command across a specific network port (eg. 2124) to a specific ip address. I already have writen the recieving code (for the iPhone os) and accepts commands like:
filefound("Name of file",filetype,size)
All this is to be sent in plain text and once received the iPhone will then send a command like:
nextfile()
View 1 Replies
Feb 13, 2012
while making my irc bot i need to send many different irc commands such as join channel, change mode, kick user message, topic channel message and so on. All these commands are currently process individually in a public sub on the irc connection thread.
Public Sub Write(ByVal command As String)
_streamWriter.WriteLine(command)
_streamWriter.Flush()
[Code]....
Would you have a load of public sub's to handle each or maybe something else?
View 2 Replies
Aug 24, 2010
I am creating an application to configure some modems through the serial port. I have no problem sending a single string of data to the serial port and displaying the immediate response to a rich text box. I have 2 problems
1st: how to update the rich text box for any delayed response from the modem
2nd: how to react to the response from the modem, in other words I want to send the next command based on the response from the modem witch is usually "OK"
This is what my code looks like currently to send ans receive data from the serial port. (sport1 is my serial port and display is my rich text box)
sPort1.Write("AT+WOPEN=1" + Environment.NewLine)
With Display
.AppendText(sPort1.ReadExisting())
[Code].....
View 1 Replies
Jun 10, 2009
i need help on that. My app is able to debug and execute successfully. But the problem is after i click on the send button, a msg box shows message successfully sent.However the recipient did not receive the msg at all.This is the code below:
[Code]...
View 5 Replies
Mar 5, 2011
I need code, or some instructions how-to-do, app that can perform all, or just basic, assembly commands over some currently active process on PC if that is possible in VB.NET.
View 1 Replies
Jun 4, 2012
I am using sub main and no application framework. This gets rid of the single instance option for the program. I want to be able to have my app handle mailto but it needs to be single instance.
I have:
Public Sub Main(ByVal cmdArgs() As String)
Dim tempProcess As Process
[code].....
View 3 Replies
Apr 3, 2009
I understand running the command shell as a process, How would i run multiple arguments in that one process? For example, here's a process to do a netstat.[code]How would I do that with the following commands? I'd like to click one button and have these all run one after the other.[code]
View 7 Replies
Oct 25, 2009
I need to open several pdf, word and excel files from process.start like command, but only open one file at time.
View 2 Replies
Sep 16, 2010
Will the commands I send to a Process.Start() be obeyed from within the IDE? [code]This doesn't work in the IDE, just gives me a blank window with the full string as the window name, but I'd like to fire up ffmpeg from within the app, wondering if it's an IDE thing or my code. I know some things in Flash work differently in the IDE than the "real" thing, not sure if VS does it too.
View 1 Replies
Dec 10, 2008
I am writing a program for a Project in school. And so far i have gotten remote execution of commands. And now i want to be able to pull The process list on one machine and send it remotly to the other. Getting the process list on the machine is no problem, but i for the life of me have no idea how to send it to the remote computer?
View 5 Replies
Feb 6, 2009
I have an external exe file that runs like a console aplication (CLI). It is started as a process and is embedded in a Panel on a form. I can type commands directly at its prompt, but I would also like to send it keystrokes from a button.
Here is the code that starts it, embeds it into a Panel, removes its TitleBar, and positions and sizes it to the size of the Panel.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim p As New System.Diagnostics.ProcessStartInfo
p.FileName = "C:Program FilesConsole2Console.exe"
proc.StartInfo = p
[Code] .....
I wondered if SendKeys would work, but the documentation says it should be sent to the 'active window', but there I get confused, as my exe is a process, and I do not know if the Panel it is embedded into is the 'window' referred to, or the proc.MainWindowHandle, and I do not know whether it is active or not.
View 10 Replies
Mar 29, 2009
I'm attempting to send an email to multiple recipients, via the System.Diagnostics.Process.Start() command. The string I'm using looks like this...
System.Diagnostics.Process.Start("mailto:Test1 <test@nowhere.atall>; Test2 <test2@nowhere.atall>;")
The first email shows up correctly in my email program (Windows Mail in this case), but the second email does not show up. If I get rid of the brackets that separate the email from the recipient name (getting rid of the recipient name from the string), then both email addresses will load without problems. It's only when the brackets are included that the problem occurs. I've tracked the specific problem spot to the closing bracket on the first email name. For some reason, everything that follows the closing bracket is ignored.
View 3 Replies
Nov 19, 2011
I am working on a small VB application that listens for commands sent from an Android app.
One of the functions is to extract an archive. I am familiar with how to listen for the unrar process to finish, so I can display a progressdialog on the phone while the extraction is happening, and clear it as soon as it's done.
BUT ... if there is an error/alert from WinRAR, WaitForExit() never gets called because WinRAR is still sitting there open until I click "OK" on the MsgBox.
For Example ... if you try to extract a file that is not actually an archive... an alert will pop up saying "No Archives Found", and basically everything is halted on the VB app and the Android app, and the Android app just sits on a progressdialog saying "extracting..." until you manually hit "OK" on the computer.
As you can imagine, this is a problem if the whole point of your app is to NOT have to go over to the computer.
So... I am wondering if there is something similar to WaitForExit() that will wait for an error and allow me to close out the alert and let the process end.
Here's my Sub for the UnRar command:
Private Sub UnRar(ByVal WorkingDirectory As String, ByVal filepath As String)
Dim objRegKey As RegistryKey
objRegKey = Registry.ClassesRoot.OpenSubKey("WinRARShellOpenCommand")
[Code]......
View 9 Replies
Oct 27, 2011
I am working with saving and deleting images. What i really want to do is check and see if an image exists in the destination folder and if it does automatically overwrite it. i couldnt figure that out so i figured i would look to see if the file was there if it is Delete it then write the new file..The issue is i keep getting this error.The process cannot access the file "FileName" because it is being used by another process. [code]
View 5 Replies
Feb 26, 2012
I am new to VB and am trying to write a program that will open cmd and execute commands when a button is clicked.[code]...
View 14 Replies
Dec 8, 2011
I'm having trouble opening and running DOS commands through VB Express.I'm trying to have VB open a command console and enter path to a batch file. So far I have not been able to get VB to open a console and enter any text.[URL} Here is the code I am using right now (without success)
Private Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" (ByVal longPath As String, ByVal shortPath As String, ByVal shortBufferSize As Int32) As Int32
Private Sub des_date_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles des_date.Click
[code]....
View 11 Replies
Aug 19, 2011
Im just starting to develop an application using a SQL Database as the main datasource. Now im wondering is it better to use the in-built dataset adapters or write the querys yourself?
If its better to use the pre-generated scripts by using the Datasource UI, How can i use these datasets on a JOIN query?
Example Join
SELECT column_name(s)
FROM table_name1
JOIN table_name2
ON table_name1.column_name=table_name2.column_name
View 3 Replies
Jun 16, 2011
I am currently in the process of writing a demonstrative program that will generate a string of 9 random numbers in a textbox. Now my basic knowledge of VB 2010 allows me to do this but my goal is to delay the generation of this number sequence until the my progress bar has progressed to the end. How can I insert a delay after my button activates my progress bar/timer without stopping all function and usability of the program all together. The basic wait function seems to lock everything up for the allotted time and then the number instantly generates and the progress bar begins.
View 8 Replies
Apr 19, 2011
I prefer having total control for data access, populating recordsets (now datasets) precisely via a connection string and SQL select (or stored procedure call), etc.Now I wonder whether I really should be using the Data Sources option which just popped up on my radar? From the little I've seen so far, it seems to bind an entire table to a control, whereas most of the time I only need a small number of records from large tables.Before I spend a lot of time investigating, I hope a quick word from you might help me feel happier continuing as I am, or whether I need a kick up the backside towards a Better Way.
View 12 Replies
Dec 20, 2011
I write in VB2010, the software should work with the external hardware via RS232, the thing is when I send a command to the external hardware I have to wait for a reply from the device that command was received, just after I got the answer I want to continue send another command, I have a long sequence of commands i'm supposed to send, but I need to know for sure that the commands were received before I go on to the next command. I did the following code, but I think the code is not effective, because sometimes I do not get an answer and then the whole sequence commands destroyed. Maybe you can help me optimize the code? [Code]
View 1 Replies
Dec 20, 2010
im trying to send RCon commands to a Call of duty: Black Ops game server.I read a thread from a few years back about sending RCon commands to a CoD 4 server, and all look promising until the application kept crashing when I pressed connect.
[code]....
all I want is to be able to send a few commands to the server through an application.
View 18 Replies
Aug 19, 2010
I have an application, for sending SMS to mobile phones, using a GSM modem and AT commands. It works perfectly, except in one point. If the modem have some problem, for example doesn't have network, or even doesn't have a SIM card, I dont know if the message was sent or not. How can I test if the message was sucefully sent?
View 15 Replies
Feb 12, 2012
My project involves making a table database that displays student number, surname, first name, homeroom, and grade avg. Through SQL commands, there must be functions to add, update, delete, search by field, and save records to the database.I have already set the database up just fine and displayed it in a DataGridView. Through the DataGridView, I was able to go to the "Add Query" area, and I successfully made the queries necessary for searching by field. However, when I try to do anything other than a search using the query builder (ie start my SQL command with INSERT INTO or DELETE FROM), I ultimately get the message "Failed to get schema for this query"For example, this SQL code (to add an entry to the database) worked when I was in the Query Builder (and the entry that it made is still in the database), but when I finally tried to confirm it, I got the "Failed to get schema for this query" message.Being unable to add entries to the database this way, I tried to do it with textboxes on a form. Each textbox will have one of the fields, and at the click of a button, they would be put into the table. My code is below. I do not know what is wrong withit. When I run it, my fields do not appear on the DataGridView immediately, but I must run the program again to see it. The time after, the entry is gone. So I am not sure how exactly such entries are to be saved.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
[code].....
View 1 Replies
Jun 4, 2009
I have written a windows service that is meant to launch a notepad when a specific action happens. The problem i have is that even though the service launches notepad, the actual notepad it self is NOT visible. I know that it has been launced because i can see the process in the task manager. By the way the process is listed as a SYSTEM process rather than a process under my user name (i believe that is because my process is a "LocalSystem" one).
View 4 Replies