Copy FGDB or Table from Shared drive

638
2
Jump to solution
05-15-2017 07:54 AM
by Anonymous User
Not applicable

Hello All,

I am trying to copy FGDB file which contains one table using python script

Source: Shared on shared drive which require userID and password

Destination : Again Shared drive which require userID and password 

While i am connected the both shared drive folder on Arc Catalog tool works but without folder connection its not.

Can one have any solution which i can try  Please share to me.

1)How to open/connect shared drive which require credentials

2)how to copy file like filename_new and rename old one filename>>filename_old then again filename_new>> filename

With some validation will appreciated 

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

Hello All,

I have found the solution and implemented using batch script,

Tasks:

Connect to both shared drive using net use and  use robocopy command to copy data from one server to an other.

Rename the previous data for back.

Read the log file and share on mail using SMTP python.

All done !

View solution in original post

0 Kudos
2 Replies
BlakeTerhune
MVP Regular Contributor

What error message are you getting in Python? Can you post your code that constructs the file paths? How are you running this script, and with what user?

0 Kudos
by Anonymous User
Not applicable

Hello All,

I have found the solution and implemented using batch script,

Tasks:

Connect to both shared drive using net use and  use robocopy command to copy data from one server to an other.

Rename the previous data for back.

Read the log file and share on mail using SMTP python.

All done !

0 Kudos