1.

Solve : Check Dirctory and sub directory is ready for copying data to other location?

Answer» HI,
  I am newibe in batch programming. I have share folder "c:\test" . Under this directory, i have two share sub directory "Log1","Log2" and "Log3".I want to CHECK these dirctory are ready for copying data to other share folder "D:\NEW". That means that to ensure that thsese directory and all al sub directory are
not used any other pro0grams. How its possible.?

Regards
Dileep Is D: drive located on this same computer or another system on a network with a mapped drive on your local system as D:   ?

If you have a specific program that LIKES to read/write to a specific location, you could test to see if this program is running before writing to the shared location. What is the name of this program that could conflict with a shared folder/directory? In task manager you can start this program and write down what the computer ASSOCIATES its name as, then use that to identify it in a batch. A batch could be created to test to see if this program is active, and if so, not allow writing to this shared folder and avoid a batch crash or other issues with file already in use being written to by batch instruction while already open by another program etc.

With this additional info, we'd be able to help you better.Yes: D: drive is a share folder  and it is on network.
We want to check  if any writing operation happened under a particular directory.The file file writing as txt or log ext.


Discussion

No Comment Found