Good day Guys
I hope someone can help me on that one.
I am trying to copy documents that has the folder structure and document name stored in tables and the actual document is store on a document server.
I take the path and files name using TSQL and copy the files to a new location including the folder structure and rename the file to a more readable name.
I can use the OLE automation to copy the files but it does not create the folder structure.
I must create the structure in advance and this is not always known until you get the file location.
I have tried to create an xcopy command that I saved to a txt file but the xcopy always ask me if it is a file of a folder.
Xcopy does not seem to have a command to always specify it is a file or a directory.
If I answer the question it work but I have to do it for every documents. If I have few documents it is fine but if I have 1000's of files to copy it is rather annoying to have to press the value every time.
If I create a robocopy command it will do just that but it will not rename the file correctly.
Also not everyone has a copy of that old application.
Does anyone had to do this and would have a solution to copy the structure and specific files?
Let me know if I am not clear.
I hope someone can help me on that one.
I am trying to copy documents that has the folder structure and document name stored in tables and the actual document is store on a document server.
I take the path and files name using TSQL and copy the files to a new location including the folder structure and rename the file to a more readable name.
I can use the OLE automation to copy the files but it does not create the folder structure.
I must create the structure in advance and this is not always known until you get the file location.
I have tried to create an xcopy command that I saved to a txt file but the xcopy always ask me if it is a file of a folder.
Xcopy does not seem to have a command to always specify it is a file or a directory.
If I answer the question it work but I have to do it for every documents. If I have few documents it is fine but if I have 1000's of files to copy it is rather annoying to have to press the value every time.
If I create a robocopy command it will do just that but it will not rename the file correctly.
Also not everyone has a copy of that old application.
Does anyone had to do this and would have a solution to copy the structure and specific files?
Let me know if I am not clear.