Search results for query: *

  1. W

    Question Displaying DOS command erroroutput in a textbox

    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...
  2. W

    Question Displaying DOS command erroroutput in a textbox

    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...
  3. W

    Question Displaying DOS command erroroutput in a textbox

    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...
  4. W

    Question Update requires a valid Insert Command

    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
  5. W

    Question Update requires a valid Insert Command

    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...
  6. W

    Question Update requires a valid Insert Command

    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...
  7. W

    Question Update requires a valid Insert Command

    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...
  8. W

    Question Running DOS commands and checking responces

    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...
  9. W

    Question Running DOS commands and checking responces

    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...
  10. W

    Question Error checking shell comands in console applacations

    Thank you Herman I will try that
  11. W

    Question Error checking shell comands in console applacations

    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...
  12. W

    Question Error checking shell comands in console applacations

    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...
  13. W

    Data Entity Model question

    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 <>...
  14. W

    Data Entity Model question

    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...
  15. W

    Simple question about moving files

    That worked, Thanks
  16. W

    Simple question about moving files

    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...
  17. W

    Question Not getting the MyBuilder.getupdateCommand thing

    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()...
  18. W

    Getting a syntax error on my INSERT statment

    As it turns out I used Count as a field name on my Table. Count being a reserved word the Insert failed. But thanks for the advice
  19. W

    Using Database explorer to connect to a Access database

    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.
  20. W

    Getting a syntax error on my INSERT statment

    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...
Back
Top