Solved

OPEN A TEXT FILE ON SBS2008 SERVER IN SHARED MODE WITH VB6

Posted on 2013-02-07
10
282 Views
Last Modified: 2013-02-10
In a accounting system in VB6 I need to write a log for every posting to a appending text file, plain ascii
I want to keep the file open in the program, due to closing and open the file on
every report line would I believe ,  give to  much load on server (open/write/close)
But:
multiple users has to add lines to the same file.
What would be the best/save aproach to do this in VB6
0
Comment
Question by:BIAPRO
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
10 Comments
 
LVL 25

Expert Comment

by:SStory
ID: 38863875
0
 

Author Comment

by:BIAPRO
ID: 38863987
code is for .new  not VB6
thanks
0
 

Author Comment

by:BIAPRO
ID: 38863990
i mean .net visual
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 25

Expert Comment

by:SStory
ID: 38864789
Open "log.txt" For Input As #1

There is a share keyword in there somewhere. I don't have a reference manual to find it.
You want to tell the open command to open it shared and read.
0
 

Author Comment

by:BIAPRO
ID: 38874273
I've requested that this question be deleted for the following reason:

got advise to place this in VB zone
0
 

Author Comment

by:BIAPRO
ID: 38873768
It was for VB6 , but given answer was for vbnet, so could untill now nothing do with
this request
Regards Jack
0
 
LVL 25

Accepted Solution

by:
SStory earned 500 total points
ID: 38874771
My second answer was for vb6

In those days you could use the OPEN statement with a sharing option in read mode to do it.
I would need the vb6 help file to get the exact syntax, but this how to do it.
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question