Re: Prompt to overwrite file
- From: "Alex K. Angelopoulos" <aka(at)mvps.org>
- Date: Thu, 22 May 2008 08:13:08 -0400
Could you post the exact message they're getting? This looks like a peculiar coincidental problem caused by something else; the script statement you're posting will indeed attempt to overwrite without prompting, and if it can't due to a locked/missing file or insufficient permissions, it will simply fail - no prompting.
Get them to tell you precisely what the error message says; if the end user is in a remote location or can't tell you in real time, have them do a screen capture if possible. I'm not certain what the problem really is, but there's no mechanism for this copy operation to raise an overwrite prompt dialog.
"Bill Mosca, MS Access MVP" <billmosca@xxxxxxxxxx> wrote in message news:#LslB3ouIHA.5832@xxxxxxxxxxxxxxxxxxxxxxx
I have a script that my users run to update a local file on a Win XP Pro SP2 machine. Nothing fancy, but for some reason, one of my users gets a prompt asking if she wants to replace the existing file. As far as I know, none of my other users get this prompt..
Set fs = WScript.CreateObject("Scripting.FileSystemObject")
fs.CopyFile cSVRPATH & "\" & cTXTFILE, cLOCPATH & "\", True
Isn't the overwrite argument supposed to suppress the prompt? And what setting does she have that would ignore that argument?
--
Bill Mosca, MS Access MVP
http://www.thatlldoit.com
http://mvp.support.microsoft.com/profile/Bill.Mosca
http://tech.groups.yahoo.com/group/MS_Access_Professionals
- Follow-Ups:
- Re: Prompt to overwrite file
- From: Bill Mosca, MS Access MVP
- Re: Prompt to overwrite file
- References:
- Prompt to overwrite file
- From: Bill Mosca, MS Access MVP
- Prompt to overwrite file
- Prev by Date: Re: Decrease User Level
- Next by Date: Re: Reading/scanning keyboard input with VBscript
- Previous by thread: Prompt to overwrite file
- Next by thread: Re: Prompt to overwrite file
- Index(es):
Relevant Pages
|
Loading