Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Don't fear the pen. When in doubt, draw a pretty picture." -- Baker's Third Law of Design.


devel / comp.databases.ms-access / Moving folders and files

SubjectAuthor
* Moving folders and filesKeith Tizzard
`* Re: Moving folders and filesUlrich Möller
 `* Re: Moving folders and filesRon Paii
  `- Re: Moving folders and filesKeith Tizzard

1
Moving folders and files

<1eac6f02-5429-41c9-a11f-e082f9ca73ben@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=827&group=comp.databases.ms-access#827

  copy link   Newsgroups: comp.databases.ms-access
X-Received: by 2002:a37:8ec1:0:b0:72f:7b06:601b with SMTP id q184-20020a378ec1000000b0072f7b06601bmr169618qkd.96.1676479044646;
Wed, 15 Feb 2023 08:37:24 -0800 (PST)
X-Received: by 2002:aca:bb89:0:b0:37d:743b:3660 with SMTP id
l131-20020acabb89000000b0037d743b3660mr321354oif.181.1676479044339; Wed, 15
Feb 2023 08:37:24 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.databases.ms-access
Date: Wed, 15 Feb 2023 08:37:24 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=79.69.14.231; posting-account=SKIztwgAAAD15rYh-v-27VVmHult5LKY
NNTP-Posting-Host: 79.69.14.231
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1eac6f02-5429-41c9-a11f-e082f9ca73ben@googlegroups.com>
Subject: Moving folders and files
From: internet.shopping@foobox.com (Keith Tizzard)
Injection-Date: Wed, 15 Feb 2023 16:37:24 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1977
 by: Keith Tizzard - Wed, 15 Feb 2023 16:37 UTC

In my application I need to access the file system to carry out a number of activities.

There is a folder (orginalQuoteFolder) that contains a number of subfolders, many of which contain files.

I need to move this folder to a new location (newQuoteFolder) using something like:

Dim FSO As Object
Set FSO = CreateObject("Scripting.FileSystemObject")
FSO.movefolder originalQuoteFolder, newQuoteFolder
' move the Quote folder
Set FSO = Nothing

This usually works but the client says that it occasionally fails. They claim, although I have not seen the evidence, that this is because one or more of the contained files is open by another user.

Q1: Is this likely to be true?
i.e is it only possible to move a folder if all its contained files are closed?

Q2: If the move fails for this reason, how can one determine which file is open and which user has opened it?

Re: Moving folders and files

<tsks6e$37113$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=831&group=comp.databases.ms-access#831

  copy link   Newsgroups: comp.databases.ms-access
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: knobbi38@arcor.de (Ulrich Möller)
Newsgroups: comp.databases.ms-access
Subject: Re: Moving folders and files
Date: Thu, 16 Feb 2023 10:14:54 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <tsks6e$37113$1@dont-email.me>
References: <1eac6f02-5429-41c9-a11f-e082f9ca73ben@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 16 Feb 2023 09:14:54 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="69ea37fd61f33d8038865f84e38aa272";
logging-data="3376163"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xHERCf7dmfYEiUJIniAXgeN/+wkX6AP0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.2
Cancel-Lock: sha1:TmO+QujGnYpLAFQn/ozQhA/kIgQ=
Content-Language: de-DE, en-US
In-Reply-To: <1eac6f02-5429-41c9-a11f-e082f9ca73ben@googlegroups.com>
 by: Ulrich Möller - Thu, 16 Feb 2023 09:14 UTC

Hi,

Am 15.02.2023 um 17:37 schrieb Keith Tizzard:
> In my application I need to access the file system to carry out a number of activities.
>
> There is a folder (orginalQuoteFolder) that contains a number of subfolders, many of which contain files.
>
> I need to move this folder to a new location (newQuoteFolder) using something like:
>
> Dim FSO As Object
> Set FSO = CreateObject("Scripting.FileSystemObject")
> FSO.movefolder originalQuoteFolder, newQuoteFolder
> ' move the Quote folder
> Set FSO = Nothing
>
> This usually works but the client says that it occasionally fails. They claim, although I have not seen the evidence, that this is because one or more of the contained files is open by another user.
>
> Q1: Is this likely to be true?
> i.e is it only possible to move a folder if all its contained files are closed?
>
That's correct.

> Q2: If the move fails for this reason, how can one determine which file is open and which user has opened it?
In case of an error, the error number can be evaluated.
Unfortunately, I don't know of any way to tell who opened the file.

Ulrich

Re: Moving folders and files

<db3649ec-49f3-46d2-b3e9-c76cc8370558n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=833&group=comp.databases.ms-access#833

  copy link   Newsgroups: comp.databases.ms-access
X-Received: by 2002:a0c:8e86:0:b0:56e:f8b4:72b1 with SMTP id x6-20020a0c8e86000000b0056ef8b472b1mr892487qvb.84.1676931293828;
Mon, 20 Feb 2023 14:14:53 -0800 (PST)
X-Received: by 2002:a05:6808:1412:b0:37d:7435:90ef with SMTP id
w18-20020a056808141200b0037d743590efmr492259oiv.111.1676931293590; Mon, 20
Feb 2023 14:14:53 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.databases.ms-access
Date: Mon, 20 Feb 2023 14:14:53 -0800 (PST)
In-Reply-To: <tsks6e$37113$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=65.30.79.18; posting-account=RurhpQoAAACBjKrwaxvElRMdPO3AZiPP
NNTP-Posting-Host: 65.30.79.18
References: <1eac6f02-5429-41c9-a11f-e082f9ca73ben@googlegroups.com> <tsks6e$37113$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <db3649ec-49f3-46d2-b3e9-c76cc8370558n@googlegroups.com>
Subject: Re: Moving folders and files
From: ron81pai@gmail.com (Ron Paii)
Injection-Date: Mon, 20 Feb 2023 22:14:53 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2808
 by: Ron Paii - Mon, 20 Feb 2023 22:14 UTC

On Thursday, February 16, 2023 at 3:14:59 AM UTC-6, Ulrich Möller wrote:
> Hi,
> Am 15.02.2023 um 17:37 schrieb Keith Tizzard:
> > In my application I need to access the file system to carry out a number of activities.
> >
> > There is a folder (orginalQuoteFolder) that contains a number of subfolders, many of which contain files.
> >
> > I need to move this folder to a new location (newQuoteFolder) using something like:
> >
> > Dim FSO As Object
> > Set FSO = CreateObject("Scripting.FileSystemObject")
> > FSO.movefolder originalQuoteFolder, newQuoteFolder
> > ' move the Quote folder
> > Set FSO = Nothing
> >
> > This usually works but the client says that it occasionally fails. They claim, although I have not seen the evidence, that this is because one or more of the contained files is open by another user.
> >
> > Q1: Is this likely to be true?
> > i.e is it only possible to move a folder if all its contained files are closed?
> >
> That's correct.
> > Q2: If the move fails for this reason, how can one determine which file is open and which user has opened it?
> In case of an error, the error number can be evaluated.
> Unfortunately, I don't know of any way to tell who opened the file.
>
> Ulrich
I don't know to tell who has a file open using FSO. Using <Control panel / Administrative Tools / Computer Management / Shared Folders / Open Files> on the computer with the file, will show who has file open.

A quick test on the ability to move a folder is attempting to rename the folder.

Re: Moving folders and files

<79afb07f-f3eb-4678-a9f3-586035d6f97bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=836&group=comp.databases.ms-access#836

  copy link   Newsgroups: comp.databases.ms-access
X-Received: by 2002:a0c:e484:0:b0:571:ec2d:bc51 with SMTP id n4-20020a0ce484000000b00571ec2dbc51mr158343qvl.76.1677007566963;
Tue, 21 Feb 2023 11:26:06 -0800 (PST)
X-Received: by 2002:a05:6870:8202:b0:16d:e5de:ba76 with SMTP id
n2-20020a056870820200b0016de5deba76mr1680453oae.200.1677007566725; Tue, 21
Feb 2023 11:26:06 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.databases.ms-access
Date: Tue, 21 Feb 2023 11:26:06 -0800 (PST)
In-Reply-To: <db3649ec-49f3-46d2-b3e9-c76cc8370558n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=79.69.14.231; posting-account=SKIztwgAAAD15rYh-v-27VVmHult5LKY
NNTP-Posting-Host: 79.69.14.231
References: <1eac6f02-5429-41c9-a11f-e082f9ca73ben@googlegroups.com>
<tsks6e$37113$1@dont-email.me> <db3649ec-49f3-46d2-b3e9-c76cc8370558n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <79afb07f-f3eb-4678-a9f3-586035d6f97bn@googlegroups.com>
Subject: Re: Moving folders and files
From: internet.shopping@foobox.com (Keith Tizzard)
Injection-Date: Tue, 21 Feb 2023 19:26:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Keith Tizzard - Tue, 21 Feb 2023 19:26 UTC

On Monday, 20 February 2023 at 22:14:56 UTC, Ron Paii wrote:
> On Thursday, February 16, 2023 at 3:14:59 AM UTC-6, Ulrich Möller wrote:
> > Hi,
> > Am 15.02.2023 um 17:37 schrieb Keith Tizzard:
> > > In my application I need to access the file system to carry out a number of activities.
> > >
> > > There is a folder (orginalQuoteFolder) that contains a number of subfolders, many of which contain files.
> > >
> > > I need to move this folder to a new location (newQuoteFolder) using something like:
> > >
> > > Dim FSO As Object
> > > Set FSO = CreateObject("Scripting.FileSystemObject")
> > > FSO.movefolder originalQuoteFolder, newQuoteFolder
> > > ' move the Quote folder
> > > Set FSO = Nothing
> > >
> > > This usually works but the client says that it occasionally fails. They claim, although I have not seen the evidence, that this is because one or more of the contained files is open by another user.
> > >
> > > Q1: Is this likely to be true?
> > > i.e is it only possible to move a folder if all its contained files are closed?
> > >
> > That's correct.
> > > Q2: If the move fails for this reason, how can one determine which file is open and which user has opened it?
> > In case of an error, the error number can be evaluated.
> > Unfortunately, I don't know of any way to tell who opened the file.
> >
> > Ulrich
> I don't know to tell who has a file open using FSO. Using <Control panel / Administrative Tools / Computer Management / Shared Folders / Open Files> on the computer with the file, will show who has file open.
>
> A quick test on the ability to move a folder is attempting to rename the folder.

If this were Unix I could most likely find and run the program that produces this. And then pipe its output through a filter to select just those files in the folder of interest.


devel / comp.databases.ms-access / Moving folders and files

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor