Click here to Skip to main content
15,895,011 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionmemorystream Pin
WhiteGirl2321-Aug-07 8:31
WhiteGirl2321-Aug-07 8:31 
AnswerRe: memorystream Pin
Dave Kreskowiak21-Aug-07 8:54
mveDave Kreskowiak21-Aug-07 8:54 
GeneralRe: memorystream Pin
Guffa21-Aug-07 11:13
Guffa21-Aug-07 11:13 
GeneralRe: memorystream Pin
WhiteGirl2321-Aug-07 19:28
WhiteGirl2321-Aug-07 19:28 
AnswerRe: memorystream Pin
Guffa22-Aug-07 4:57
Guffa22-Aug-07 4:57 
GeneralRe: memorystream Pin
WhiteGirl2322-Aug-07 9:01
WhiteGirl2322-Aug-07 9:01 
QuestionFile Association Pin
Kschuler21-Aug-07 7:34
Kschuler21-Aug-07 7:34 
Questionhandshaking through a subdirectory Pin
MartyK200721-Aug-07 6:55
MartyK200721-Aug-07 6:55 
Hello,
My problem.
we have a legacy unix system that perdiodically writes files to a subdirectory ( a repeating job runs every few minutes and drops the files).
There are sets of files so there may be setA File1to3 and SetB file1to8.

This is absoluely THE ONLY WAY the unix system will transfer the files (no http pushes or web services or anything else)

I have to write an interface that runs a periodic VB net job which will read the contents of the subdirectory and if a complete set is present move that set from the subdir.

Of course my job and the unix job could be running at exactly the same time so I cant just find a find and move it out , because the file may still be being copied from unix as I try and copy it.

I am looking for a safe way of handshaking those files.

I was thinkinng the unix system could write a lock file, which stops my job looking in the subdir,copies the unix files and deletes the locking file.

BUT ok here is where I admit to lying slightly - it isnt one unix system its 4 and there is also 1 windows xp system that works in the same way (sigh!)

So I could use 5 locking files and if any are present not do anything But what if one of those unix systems crashes after writing a lock file , then the whole process is stuffed (er thats a technical term I believe!).

So what I am really looking for is process logic which is a safe and simple way of getting my VB Net interface to read files in sets which have been delivered to the same subdirectory from different sources (and yes it must be the same subdirectory - The network security people have only opened this 1 subdir and no child subdirs are permitted - They must be a different breed of people - still...)

is there a way of telling if a file has finished being copied to a subdir - ie its 12M in length - I look at it whene only 4 M has been copied......

Thanks in advance
Martin

life is a bowl of cherries
go on take a byte

AnswerRe: handshaking through a subdirectory Pin
Dave Kreskowiak21-Aug-07 7:34
mveDave Kreskowiak21-Aug-07 7:34 
GeneralRe: handshaking through a subdirectory Pin
MartyK200721-Aug-07 8:00
MartyK200721-Aug-07 8:00 
GeneralRe: handshaking through a subdirectory Pin
Dave Kreskowiak21-Aug-07 8:53
mveDave Kreskowiak21-Aug-07 8:53 
AnswerRe: handshaking through a subdirectory Pin
andyharman21-Aug-07 8:45
professionalandyharman21-Aug-07 8:45 
GeneralRe: handshaking through a subdirectory Pin
MartyK200721-Aug-07 21:05
MartyK200721-Aug-07 21:05 
AnswerRe: handshaking through a subdirectory Pin
Luc Pattyn21-Aug-07 12:30
sitebuilderLuc Pattyn21-Aug-07 12:30 
GeneralRe: handshaking through a subdirectory Pin
MartyK200721-Aug-07 21:07
MartyK200721-Aug-07 21:07 
QuestionCrystal Reports and Queries Pin
Dreamer200721-Aug-07 5:35
Dreamer200721-Aug-07 5:35 
AnswerRe: Crystal Reports and Queries Pin
TomGarth21-Aug-07 12:40
TomGarth21-Aug-07 12:40 
QuestionInstalling a font from setup Pin
dptalt21-Aug-07 5:30
dptalt21-Aug-07 5:30 
Questionregistering a library through regasm Pin
sheth.mital21-Aug-07 4:32
sheth.mital21-Aug-07 4:32 
AnswerRe: registering a library through regasm Pin
Dave Kreskowiak21-Aug-07 5:08
mveDave Kreskowiak21-Aug-07 5:08 
QuestionForm's Title Pin
ejaz_pk21-Aug-07 4:18
ejaz_pk21-Aug-07 4:18 
AnswerRe: Form's Title Pin
Dave Kreskowiak21-Aug-07 5:11
mveDave Kreskowiak21-Aug-07 5:11 
AnswerRe: Form's Title Pin
nlarson1121-Aug-07 5:41
nlarson1121-Aug-07 5:41 
QuestionImport Pics on project and reDel it .. problem ? Pin
kindman_nb21-Aug-07 3:36
kindman_nb21-Aug-07 3:36 
AnswerRe: Import Pics on project and reDel it .. problem ? Pin
leckey21-Aug-07 3:58
leckey21-Aug-07 3:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.