Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open and reuse network drives within a macro

Status
Not open for further replies.

FABIS

IS-IT--Management
Sep 4, 2003
6
US
How do I create a network drive, move data to it, close the drive and reuse the same drive for a new network location? I have 15 branch locations that I need to send data to each server within the macro.
 
Fabis,

Why not use UNC conventions? You can also shell out to call .bat files from within the macro, and those certainly can use UNC for file copies.

Dave Griffin


The Decision Support Group
Reporting Consulting with Cognos BI Tools
"Magic with Data"
[pc2]
Want good answers? Read FAQ401-2487 first!
 
Great idea, but how does that work? Can you give me an example of the script? Thanks..........
 
Fabis,

Create the .bat file as:

xcopy \\srcserver\srcdir\fileslike \\destserver\location /options

Then put a shell command, as in

shell path.copier.bat

within your macro at the appropriate location

Give it a try and let us know if you have questions.

Hope this helps.

Dave Griffin


The Decision Support Group
Reporting Consulting with Cognos BI Tools
"Magic with Data"
[pc2]
Want good answers? Read FAQ401-2487 first!
 
Thanks Dave, I will give that a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top