Solved

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

Posted on 2013-02-07
10
277 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now