Need help to copy a personal geodatabase from one location to another:
Trying to copy a personal geodatabase from one location to another
location where all the users are retrieving data from the second
location:
1. I can copy over the updated personal geodatabase to the working
location and overwrite it, though the file is opened by ArcGIS users
(Local Installation of Arc GIS on the users computers).
2. But problem is that I can't copy over if the same updated
personal geodatabase to the working location, if users uses that same
geodatabase through CITRIX - ArcGIS ( user does not have permission to
edit the data)
3. the python script which I am using as follows:
import shutil
import os
src = "c:\mydata\test \mygeo.mdb"
dst = "v:\updated\dat a\mygeo.mdb"
shutil.copyfile (src,dst)
I highly appreciate if any one of you can help me and give me a
direction that I can solve this problem.
Thanks in advance.
Shak 1 2760
Ahmed, Shakir wrote:
Need help to copy a personal geodatabase from one location to another:
Trying to copy a personal geodatabase from one location to another
location where all the users are retrieving data from the second
location:
1. I can copy over the updated personal geodatabase to the working
location and overwrite it, though the file is opened by ArcGIS users
(Local Installation of Arc GIS on the users computers).
2. But problem is that I can't copy over if the same updated
personal geodatabase to the working location, if users uses that same
geodatabase through CITRIX - ArcGIS ( user does not have permission to
edit the data)
3. the python script which I am using as follows:
import shutil
import os
src = "c:\mydata\test \mygeo.mdb"
dst = "v:\updated\dat a\mygeo.mdb"
shutil.copyfile (src,dst)
I highly appreciate if any one of you can help me and give me a
direction that I can solve this problem.
Thanks in advance.
Shak
While I'm uncertain about the exact nature of your problem I can tell you that
the src string you have defined won't work becaust \t is a tab character. To
make shutil.copyfile work you need to do:
src = r"c:\mydata\tes t\mygeo.mdb"
dst = r"v:\updated\da ta\mygeo.mdb"
or
src = "c:\\mydata\\te st\\mygeo.mdb"
dst = "v:\\updated\\d ata\\mygeo.mdb"
-Larry This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hugo Ferreira |
last post by:
Hi there,
I have a problem. I'm using calling shutil.copyfile() followed by
open(). The thing is that most of the times open() is called before
the actual file is copied. I don't have this problem when doing a
step-by-step debug, since I give enough time for the OS to copy the
file, but at run-time, it throws an exception.
Is there anyway to force a sync copy of the file (make python wait for
the completion)?
|
by: David Nicolson |
last post by:
Hi,
I wasn't exactly sure where to send this, I don't know if it is a bug
in Python or not. This is rare, but it has occurred a few times and
seems to be reproducible for those who experience it.
Examine this code:
This is the output:
exceptions.UnicodeDecodeError
|
by: lucidparadox |
last post by:
I'm currently new to Python and I haven't been able to find the
operator/math function to find the square root or even the x root of a
number. I'm rewriting a program that I wrote in BASIC that does the
math of a quadratic equation (user puts in a, b, and c values) and
tells the user whether it has 1 root, 2 roots, or no real roots and
displays the roots if it has real roots.
Thanks in advance,
Dan
|
by: Ben Sizer |
last post by:
I need to copy directories from one place to another, but it needs to
overwrite individual files and directories rather than just exiting if
a destination file already exists. Previous suggestions have focused
on looking at the source for copytree, but it has several places where
exceptions can be raised, and the documentation for the shutil
functions that copytree is implemented in terms of isn't exactly clear
about which exceptions get...
|
by: Robert Dailey |
last post by:
Hi,
I'm trying to create a Python equivalent of the C++ "ifstream" class,
with slight behavior changes.
Basically, I want to have a "filestream" object that will allow you to
overload the '<<' and '>>' operators to stream out and stream in data,
respectively. So far this is what I have:
class filestream:
| |
by: Ahmed, Shakir |
last post by:
Is there any way to copy a file from src to dst if the dst is
exclusively open by other users.
I am using
src = 'c:\mydata\data\*.mdb'
dst = 'v:\data\all\*.mdb'
shutil.copyfile(src,dst)
|
by: Lance Hoffmeyer |
last post by:
Hey all,
As always, thanks in advance!
I am trying to save a ppt presentation but am having problems regarding spaces and am wondering
if I am doing something wrong or whether this is a bug? Also, is there a way around this other
than not using spaces in paths or filenames? I can create filesnames without spaces but don't have
much control over paths.
|
by: Roopesh |
last post by:
Hi,
I have a multithreaded application. There are two threads, T1 and T2.
Suppose that there are two folders A, B. Thread T1 fetches data from
network and creates files in folder A and after creating each file, it
moves the file to folder B, using shutil.move().
Thread T2, takes files from folder B and processes it.
Note: Only the thread T1 has access to the files in folder A.
|
by: klia |
last post by:
hello folks
i am trying to tweak the current codes so that later when i call it from the terminal i can provide sourcefile and the destination file rather being fixed in the code. because now i have to specify the sourcefile and the destinationfile in codes and not left to be specified from the terminal. i want to be able to do this.
python shutil_copy.py sourcefile, destinationfile
import shutil
shutil.copyfile(srcfile, dstfile)...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |