Solved

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

Posted on 2013-02-07
10
280 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
  • 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to implement Singleton Design Pattern in Java.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

839 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