Solved

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

Posted on 2013-02-07
10
279 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

832 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