Thank you JohnH I will look into the DOS error handling. I am not sure if people that create the batch files will know what needs to be done. The other alternative would be to find a way to submit the batch commands individually. I played with this idea in the beginning but I think I had similar...
Very good catch, You are right as I look back through the output I see the error messages are mixed with the standard output. I guess it confused me because the commands are listed in the proper order. How do I make it wait for the first command to finish before submitting the next? This will be...
I know this has been discussed a million times and I have a working program. I am allowing users to execute .bat file from a GUI. My application is simple it has a form with a split container with a list of bat file on one side and a textbox on the other. When the user clicks on a batch file the...
Sorry, Dont know why that didn't work but this time I am attempting to attach a sample zip with the database, Tech Guide, and sample data. You have my code above. Thanks Again
Thank you that would be great. I am only concerned about the notification file on pages 26-28 at this time. Whatever I come up with it has to be easy to maintain because they change the layout every few years and I have to be able to identify the fields and make the proper modifications. I have...
Thanks for your response jmcilhinney. Man I spent hours researching TextFieldParser. Pretty neat stuff. I decided not to go that way because of the complexity of defining fieldwidths and then doing the update they change this thing all the time and maintenance world be a bear. So I decided to...
I am new to VB.Net and am trying to migrate a Access application. I have text file(s) I need to read and use to updated an access database. I did some research and came up with the code below. I am connected to the database and cycle through the records I assume updateing the dataset in my...
Ok, Some progress, This code successfuly executes a batch file sending the output and Error messages to a strings.
Sub Execute_Batch_file(ByVal Batch_file As String)
On Error GoTo HandleErrors
Dim batchSuccessful As Integer
Dim ExitCd As Integer
Dim BatExec As...
I have a requirement to write a program that will watch a directory for a text file to be dropped into. It will always be active on a server. The text file will have one of two types of lines ?Exstream? or ?End-Program?. ?End-Program? will signal the program to shut down. ?Exstream? will...
The error message was
Looking at the error message I see that I was mistaken on my first assessment the program returned the error message. I wonder if I could pipe this into a txt file then read it and determine if there was an error or at least put it in the email. Unless someone else can...
I have a console application that watch’s a directory for a file. When it see a file it opens the file reads each line and submits them to DOS. The problem I am having is that when I get a error the application returns and does not know or report the error. In this case I and getting a file not...
cjard thank you for your reply, Actually I found the anwser in the next lesson.
Dim authorQuery As ObjectQuery(Of Author) = publishContext.Author.Where("it.FirstName <> 'Mark'") only returns Aurthor's.
Dim authorQuery As ObjectQuery(Of Author) = publishContext.Author.Where("it.FirstName <>...
I am working through a tutorial I found on this fourm posted by mendhak in 2008. I am working on the second lesson and for some reason the code to return the number of Article's is always 0. I ran a query and the first two authors should have 2 articles each. is there some reason this does not...
I have a program that cycle’s every 15 minutes to check for .bat files that need to be run. After it executes the all the .bat files it finds it moves them to an archive directory. If the user made a mistake and needs to modify and resubmit a bat file, I need to run it and then replace the file...
I have seen so many posts on this topic and didn't think I would have a problem. Thats when it all fell apart. I am trying to update Inventory records with production counts. It updates the first record but thats it and I am not getting a error. Any advice is welcome.
Sub UpdateCounts()...
Is this a dumb question? I have not used the VB Development program a lot. I saw you can connect to a database while creating a console app but have never seen it done and cannot find anything conclusive on the internet.
Can some one look at this please.
I have created a console application that reads a file and updates a Access database. The Open works but i keep getting "Syntax error in INSERT INTO statment" when I try to insert a record. When I list the INSERT statment I get this
INSERT INTO...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.