Sign in to follow this  
Followers 0
richietheprogrammer

Lan CSV update checker?

9 posts in this topic

Hi guys, trying to see if I can get some help. Basically, I have an SQL server running. I need to be able to browse through a csv file that is on my lan from multiple computers. It has read issues (obviously) if I try to search through a scv file that is on the lan using multiple computers at once. So how can I use multiple computers connected to the lan and be able to search through one csv file that is on the lan at once? Any help is much appreciated! Thanks! :huh2:

Share this post


Link to post
Share on other sites



Hmm no ideas?

Share this post


Link to post
Share on other sites

like making a copy of it, and parsing that?


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

like making a copy of it, and parsing that?

Not sure if that will work. Is there a way for all the computers on the lan to access one csv file at once that way?

Share this post


Link to post
Share on other sites

Is there a way for them to access the information before it gets into the CSV file. You said it's on a SQL server, why not access the data in the database instead of a text file?

This isn't really an AutoIT3 question, it's more of a Windows Server question, and should probably be directed to those that have more knowledge in regards to file locking and access.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

Is there a way for them to access the information before it gets into the CSV file. You said it's on a SQL server, why not access the data in the database instead of a text file?

This isn't really an AutoIT3 question, it's more of a Windows Server question, and should probably be directed to those that have more knowledge in regards to file locking and access.

The information is already in the csv files. I just dont want to put the csv files on all the local drives, regardless of which way I can do them. Oh and I have my code ready in autoit, but it works with a csv on the c drive that is being accessed from one computer.

Share this post


Link to post
Share on other sites

if the first line of your script copies that file to a location on their local machine, then they parse that

or make a copy in the current csv location with a unique string appended, like their @computername, then they parse that

suppose you my want to also delete the copies when finished reading.


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

if the first line of your script copies that file to a location on their local machine, then they parse that

or make a copy in the current csv location with a unique string appended, like their @computername, then they parse that

suppose you my want to also delete the copies when finished reading.

so you are suggesting that I copy the file from the lan to the c drive, and before the script is done, delete the file?

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Not specifically,

im suggesting you make a copy of the file to any location that user can read from, do your reading from the copy. Thusly, if in your solution all users make their copies in the same location, ensure they are making copies with unique names.

and then yes, i would probably delete the file when finished, to ensure that on the next run it was not somehow using an old file.

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0