Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Is it possible to copy a file to a destination that includes a shortcut? Pin
Eddy Vluggen18-Jul-11 7:46
professionalEddy Vluggen18-Jul-11 7:46 
GeneralRe: Is it possible to copy a file to a destination that includes a shortcut? Pin
Jon_Boy19-Jul-11 2:37
Jon_Boy19-Jul-11 2:37 
GeneralRe: Is it possible to copy a file to a destination that includes a shortcut? Pin
Eddy Vluggen19-Jul-11 6:19
professionalEddy Vluggen19-Jul-11 6:19 
QuestionChange Form Title Bar Color [modified] Pin
ivo7517-Jul-11 21:01
ivo7517-Jul-11 21:01 
AnswerRe: Change Form Title Bar Color Pin
Dave Kreskowiak18-Jul-11 2:13
mveDave Kreskowiak18-Jul-11 2:13 
GeneralRe: Change Form Title Bar Color Pin
ivo7518-Jul-11 2:25
ivo7518-Jul-11 2:25 
GeneralRe: Change Form Title Bar Color Pin
Dave Kreskowiak18-Jul-11 6:57
mveDave Kreskowiak18-Jul-11 6:57 
Questionread access denied to com port in vbs [modified] Pin
sonisan15-Jul-11 23:27
sonisan15-Jul-11 23:27 
I posted this in quick questions but didn't get any satisfactory response. I'm new here and don't know if it's possible to move my question here so I guess I'm guilty of cross posting. Admin - If you delete, could you delete my other post rather than this one please? Anyway - to my question.

Attempting to read from serail port, XP, admin accnt.

if there are chars in the buffer, then the following throws error: Permission denied, code: 800A0046 on the check of AtEndOfStream.

forRead=1
Set fso = CreateObject("Scripting.FileSystemObject")
Set comObj = fso.OpenTextFile("COM3:9600,N,8,1", for Read)
if not comObj.AtEndOfStream then
msgbox comObj.ReadLine
end if
com.Close


Writing on the other hand works just fine with the following:

forWrite=2
Set fso = CreateObject("Scripting.FileSystemObject")
Set com = fso.OpenTextFile("COM4:9600,N,8,1", forWrite)
com.Write "Hello World"
com.Close


Not sure its relevant but I'm using com0com to connect the two ports (3 & 4)
I should perhaps also add that using the MSCOMM obj in VB6 I can read and write no problem.

Any ideas why the permission denied for the read.

Thanks

modified on Saturday, July 16, 2011 5:42 AM

AnswerRe: read access denied to com port in vbs Pin
Dave Kreskowiak16-Jul-11 11:11
mveDave Kreskowiak16-Jul-11 11:11 
GeneralRe: read access denied to com port in vbs Pin
sonisan16-Jul-11 22:06
sonisan16-Jul-11 22:06 
QuestionBrowser with advanced tab Pin
ObscureA9215-Jul-11 20:38
ObscureA9215-Jul-11 20:38 
GeneralRe: Browser with advanced tab Pin
Shameel16-Jul-11 4:14
professionalShameel16-Jul-11 4:14 
GeneralRe: Browser with advanced tab Pin
ObscureA9216-Jul-11 7:26
ObscureA9216-Jul-11 7:26 
GeneralRe: Browser with advanced tab Pin
Shameel16-Jul-11 8:40
professionalShameel16-Jul-11 8:40 
GeneralRe: Browser with advanced tab Pin
ObscureA9216-Jul-11 12:08
ObscureA9216-Jul-11 12:08 
GeneralRe: Browser with advanced tab Pin
Shameel16-Jul-11 21:01
professionalShameel16-Jul-11 21:01 
Questionthis code Pin
albertodiprima15-Jul-11 5:21
albertodiprima15-Jul-11 5:21 
AnswerRe: this code Pin
Alan N15-Jul-11 6:26
Alan N15-Jul-11 6:26 
AnswerRe: this code Pin
Dr.Walt Fair, PE15-Jul-11 7:26
professionalDr.Walt Fair, PE15-Jul-11 7:26 
GeneralRe: this code Pin
albertodiprima15-Jul-11 8:12
albertodiprima15-Jul-11 8:12 
GeneralRe: this code Pin
Dr.Walt Fair, PE15-Jul-11 8:29
professionalDr.Walt Fair, PE15-Jul-11 8:29 
GeneralRe: this code Pin
albertodiprima15-Jul-11 16:25
albertodiprima15-Jul-11 16:25 
GeneralRe: this code Pin
thatraja15-Jul-11 16:48
professionalthatraja15-Jul-11 16:48 
GeneralRe: this code Pin
Dr.Walt Fair, PE15-Jul-11 17:05
professionalDr.Walt Fair, PE15-Jul-11 17:05 
GeneralRe: this code Pin
albertodiprima18-Jul-11 8:59
albertodiprima18-Jul-11 8:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.