I have applications that need run many times. Currently I use dos batch file to run .exe file generate by vb.net or c#, but to be honestly, I hate dos command/batch. How can I avoid it?Saying a simple example "Hello World!" I need run it 10 times.
I'm wondering if there is any way to exit an external batch application. My project is to make a server auto Restarting program, and the application that runs the server is titled runserver.bat I am using Visual Basic 2010 Beta 1 (with .NET 4.0 framework),
I have a VB windows application and I need a way to control input output from this windows application to a batch file.The batch script is quite complex so converting to a VB console application is out of the question because it will too much time.An simplified example is this:I have this batch file test.bat(just for example)
@echo off set /p choice=name : %choice% echo Hello %choice%!
In this batch file the user input the name which is then stored in a variable and after the user press enter on the screen will appear Hello + user input.
1. Is it possible to enter the name in a textbox from the windows form and by pushing a send button pass the name to the batch application and then the batch file to continue the operation of displaying the Hello message?
2. After the batch file finishes the operations it will open another console windows (3) with status of the various operations that take place on the system(in my case connected users to a server)Is it possible to hide this child console windows that are generated after my main .bat application finished the operations of opening connections?Can this be done from the windows application or I need to modify the .bat script?
3. Is there a way to collect the console windows output in a textbox from the windows application?One idea that came to me was to redirect the console output to a textfile and then read the textfile in the VB application but I want to know if there is another way.
4. Is it possible to hide this batch file inside the windows application exe?
I have a VB windows application and I need a way to control input output from this windows application to a batch file.
The batch script is quite complex so converting to a VB console application is out of the question because it will too much time.[code]...
1. Is it possible to enter the name in a textbox from the windows form and by pushing a send button pass the name to the batch application and then the batch file to continue the operation of displaying the Hello message?
2. After the batch file finishes the operations it will open another console windows (3) with status of the various operations that take place on the system(in my case connected users to a server)
Is it possible to hide this child console windows that are generated after my main .bat application finished the operations of opening connections?
Can this be done from the windows application or I need to modify the .bat script?
3. Is there a way to collect the console windows output in a textbox from the windows application?
I need Visual Basic to run a batch file I have placed a batch file inside my startup application directory Inside the batch file I have WUinstall /install /reboot "When I double click the batch file it works perfect" Visual Basic 2008 Command Button I Have
Dim p As Process Try 'instance a new process p = New Process
[code]....
When I click this command button all I get is CMD window just flashes. When I hold down the enter key I can faintly read something about it is not an internal command.
I believe this is an encoding issue due to the resulting output. I am trying to make a batch file (meaning .bat) from VB.NET. The output looks fine in a normal text editor, but when executed via the command prompt, it keeps giving me syntax errors to start. I've even tried using CharCodes, but still to no success.
Module Module1 Sub fileop() Dim cd As String Dim fnd As String Dim del As String Dim ms As String [Code] .....
I am trying to run the following code in order to insert some images from a folder to a database table.I open the folder and compare each image name with a field in the TEMP table which is also the product code and if they are the same then insert the image to the image field of the table. I wrote the following code but as i searched i can not have WHERE clause in an insert command.[code]
I am having trouble finding a code for visual basic 2010 (or 2008) that will compile batch files to a .exe format. (So they can no longer be edited.)So far I've only found one program that does this (And was made in Visual Studios) and the program doesn't even actually work due to some unknown error. It'd be a great help to get a source code or just told that this isn't even possible.
This time i want to kno dat how can i merge dos batch commands to a Button in vb 2008, remember one thing i dont want to redirect on .bat file. I just want to add bat command in button codes.
like i have created a button "PING" and if i click on that button the system starts to ping on that ip which i have defined in ping button like "192.168.1.1"
I am trying to knock out a tiny program very very quickly as I need it for tomorrow and doing so prob made a mistake but can't see it myself.I need to run multiple batch scripts (one at a time) but wait for them to finish before continuing (would be better if the command window was shown during execution)[code]
In Visual studio 2008, I am not able to see Batch Build option for vb.net projects as c++ projects. I am new to VB.Net. but do it have any other options to do batch buld rather than creating Batch file?
Is there any tools or DLL that can put a password in the PDF?Example I have 1,000 PDF files I want to put a password on each PDF? The password will be differ
I have been looking all day trying to find a way to do this. I need to run a Batch file which is held on a server, the file path begins with a IP Address which DOS doesn't like. So i found the pushd command which assigns a temp drive letter from which you can run the Batch File.If i was simply running a normal program or file i would use:
Dim proc As Process proc = Process.Start("c:\BatchFile.bat") proc.WaitForExit()
I've been thinking of a new possible project, and I was wondering if it is possible to run BATCH or CMD commands straight through my VB program.I don't want to run a seperate .bat file either, I just want to run it from my code...I looked else where on the internet and they say to do things such as:
shell("cmd.exe") sendkeys.send(" (put anything you want between the quotes) ")
I am busy writing a application that i can set up a list of files to copy from one location to a remote network drive.
THe program has a list of "jobs" in a datagrid that it loops through and executes in sequence. What i have now is a background worker that reports the status of which job it is on (File 1 of 5) but i would like something that shows the status of the current copying file as sometimes large files can look like it's stopped on the network
I am using the System.io.file.copy structure, but have also tried the my.computer.filesystem.copyfile (which shows the status in a "windows" copy box)
So, what i would like is some guidance on how to create a function that will copy the file but also report back progress periodicly. I don't want to read and write byte for byte as im worried this will be too slow.
Also, is there a better way/function to use to copy files? Looking for best speed
I am trying to create a program that renames files to 1 - (however many files are in the folder) and also convert .pngs to .bmps.
If RadioButton1.Checked = True Then Dim files As String() files = IO.Directory.GetFiles(TextBox1.Text) Dim filepath_new As String filepath_new = TextBox1.Text For Each filepath As String In files [Code] .....
I have been asked to develop a solution which send to the default printer a list of files stored in a directory in file name sequence. These files maybe of any type - such as pdf or Office documents.
I have seen suggestions to using a process class (such as [URL]..However, the process would run largely unmonitored so I have concerns with regards to being able to control the submission of the numerous jobs to the printer and, for example, stopping the print should there be a failureerror in the print queue.
I have an old batch file i use that I would like to convert to vb.net,
The Batch file use a .reg entry to set the cleanmgr options. abnd then calls the sagerun command to run those options
I pretty sure I know how to create the registry entries what I am not sure to do is how to call the cleanmgr with the switches /dc /sagerun:200 then display a box saying it is complete and deleting the prefetch folder of anything older then 'n' days . [code]...
I need help creating a batch of Grand Totals each time enter my value and click Calculate.The code below gives me my Grand Total, now I would like to enter a new set of values and store the previous amount(s) until I'm ready to populate them in a Message Box.
Dim sum As Decimal = 0 For Each total As Decimal In totals sum += total[code]....
I have a batch file that loads into a form containing 20 IT related incidents. I have managed to upload the batch file into a form. However I have an algorithm that reads an incident and manages to classify into its topic: See Below the data imported form the file:
1) Need to install jet direct to printers and connect users 2) Remove ms project software from PC 04384 and re install on 07882 3) install needed for 2 vectra software for Finance department PC assest 9875 and 8711 4) Supply PC 500 SITA Rest Area phone 2268 Asset and S/N 5) Add printer Epson label printer in ISD2 6) Remove Jetdirect and network printer via port PPSS PC add printer 7) Credentials for user UK15428 not logging onto the network 8) Install CD RW and unsupported software for UKX3395 9) Need Entire software installing on asset 5530, and access to password for use. 10) phone handset not functioning for UK10529, new phone required. 11) install card reader and software following PC move 12) New user group UKG0345 no mail just printers on PC00856 and PC02427 13) Update outlook remove project from PC D0186 in Prod Control per Tony Campbell install on Alisons PC in NDS 14) Unable to log onto the network, profile will need recreating 15) Remove spent toner cartridge 16) The printer doesnt appear to be printing, it looks like there could be a paper jam of some sort 17) Set up laptop and use local admin password to gain access to backup files 18) Remove image grabber card from PC and install on PC in paint shop have explained to user they will have to contact optivision
19) Cannot get onto network as I have forgotten my password, can you reset for UK15617 20) User cannot access voicemails, need mac address to edit on TOIP software
For example number 1) would be classified as a printer problem. I want the algorithm to be able to read each number, not the whole lot and classify the whole block of text, I want it to classify each incident individually, so there are 20 incidents to be classified.