Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1
Go Back  Xtreme Visual Basic Talk > > > Shell to bat file that does Mode Com1


Reply
 
Thread Tools Display Modes
  #1  
Old 08-05-2004, 05:43 PM
2004AD 2004AD is offline
Newcomer
 
Join Date: Aug 2004
Posts: 1
Default Shell to bat file that does Mode Com1


I am trying to use VB.net on XP to run a .bat file that sends text to com1. I am new to VB.net and find this easier for now. When I use the Mode com1 command in the batch file, it will work ok if I run the .bat file from the desktop, but if I run it from a shell command in VB.net it gives a "Device Com1 is not currently available" message. But if I keep repeating this in the .bat file, then it will work. Any hints as to how to get the com port to open right away or a way to detect if it is open using this shell method.
Reply With Quote
  #2  
Old 08-06-2004, 04:55 PM
Faith's Avatar
Faith Faith is offline
Contributor
 
Join Date: Sep 2003
Location: Finland
Posts: 690
Default

Did you try this?
System.Diagnostics.Process.Start("C:\BatFile.bat")
__________________
I love deadlines. I like the whooshing sound they make as they fly by. - Douglas Adams
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1 Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1
 
Shell to bat file that does Mode Com1
Shell to bat file that does Mode Com1
 
-->