LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get origin of file over network

Im currently making a little automation program for a server we have to run simulations. I had it set up to monitor user named directorys to see if new files where added, when they did they executed and notified the appropriate user. With adding more computers to the network, i do not want to have to modify the code to look at more folders, and create a new folder each new computer we add.

I was wondering if there is some way you can find out the original location of a file if it were given to you over the network. For instance if computer A drops a simulation file in Server X, how can X know that the file came from A? Keep in mind id like to keep this is simple for the users as possible, aka no login or anyhting, just want them
to be able to dump they're files on a shared network folder.

Anyone know how this would be done?


Thank you,
-MW
0 Kudos
Message 1 of 3
(2,225 Views)
weizbox wrote:

> Im currently making a little automation program for a server we have
> to run simulations. I had it set up to monitor user named directorys
> to see if new files where added, when they did they executed and
> notified the appropriate user. With adding more computers to the
> network, i do not want to have to modify the code to look at more
> folders, and create a new folder each new computer we add.
>
> I was wondering if there is some way you can find out the original
> location of a file if it were given to you over the network. For
> instance if computer A drops a simulation file in Server X, how can X
> know that the file came from A? Keep in mind id like to keep this is
> simple for the users as possible, aka no login or anyhting, just want
>
them to be able to dump they're files on a shared network folder.

Windows does not maintain in itself any information as to the original
location a copied or moved file may have been originated from. The only
way I would see that to be workable is by including some information in
the header of the file itself which then gets examined by the reading
application on server X.

Rolf Kalbermatter
Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(2,225 Views)
Something that could be done is that the user drops a shortcut to the file instead of the file itself. The file must be in a shared directory. By resolving the shortcut you locate the source of the file e.g. "\\ComputerA\shared\file.txt" and access it.

How is it related to LabVIEW anyway? Maybe there is a more appropriate LabVIEW solution if computers run LabVIEW/LabVIEW Run-Time.


LabVIEW, C'est LabVIEW

Message 3 of 3
(2,225 Views)