Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Physician: One upon whom we set our hopes when ill and our dogs when well. -- Ambrose Bierce


devel / alt.msdos.batch / Re: robocopy : move files in subfolders according to extension

SubjectAuthor
* robocopy : move files in subfolders according to extensionAmmammata
+* Re: robocopy : move files in subfolders according to extensionJJ
|`- Re: robocopy : move files in subfolders according to extensionAmmammata
`- Re: robocopy : move files in subfolders according to extensionpyotr filipivich

1
robocopy : move files in subfolders according to extension

<XnsADB565EADAA8Aammammatatiscalineti@127.0.0.1>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=107&group=alt.msdos.batch#107

  copy link   Newsgroups: alt.msdos.batch
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ammamm...@tiscalinet.it (Ammammata)
Newsgroups: alt.msdos.batch
Subject: robocopy : move files in subfolders according to extension
Date: Thu, 30 Sep 2021 08:01:04 -0000 (UTC)
Message-ID: <XnsADB565EADAA8Aammammatatiscalineti@127.0.0.1>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 30 Sep 2021 08:01:04 -0000 (UTC)
Injection-Info: solani.org;
logging-data="8790"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Xnews/??.01.30 Mime-proxy/2.3.c.1 (Win32)
X-Face: s5/Tl9"^@"z`/]&NeE,Wl.^B~E2x9PA?1n:XZq2^T2Prz*},H~M'2.*@~v9MXx|OL8<EqC0MU$v+`Pu;`eq$N12\Nc*)cp$iBgD/wysO=)P%n6)\Xf}L\E$-0s\mD::Dx\6QwNh<U!LBH1Xj(=zy?OV.|=]We",DS\6[:
Cancel-Lock: sha1:Cccn1/HBT/AD48r+9vGJjh7cjcc=
X-User-ID: eJwFwQEBACAIA7BKXuFIHBTfP4KbL4I3jE5zuXRsR5bayjWiMjdwm9p1XiBwbdWDPJuzmLGmek5wxHiJ8wFkchVv
 by: Ammammata - Thu, 30 Sep 2021 08:01 UTC

Hello

as per subject, I'd like (if possible) to move about 45 thousands files in
related subfolders according to their extension

subfolders have already been created

thank you

--
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
-=- -=- -=- -=- -=- -=- -=- -=- - -=-
............ [ al lavoro ] ...........

Re: robocopy : move files in subfolders according to extension

<1xzvkhybykq7e$.1n9dycwxklmex$.dlg@40tude.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=108&group=alt.msdos.batch#108

  copy link   Newsgroups: alt.msdos.batch
Path: i2pn2.org!i2pn.org!aioe.org!/Jx8WJPkv9Wbru7pyjQiNw.user.46.165.242.91.POSTED!not-for-mail
From: jj4pub...@gmail.com (JJ)
Newsgroups: alt.msdos.batch
Subject: Re: robocopy : move files in subfolders according to extension
Date: Thu, 30 Sep 2021 17:55:31 +0700
Organization: Aioe.org NNTP Server
Message-ID: <1xzvkhybykq7e$.1n9dycwxklmex$.dlg@40tude.net>
References: <XnsADB565EADAA8Aammammatatiscalineti@127.0.0.1>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="53850"; posting-host="/Jx8WJPkv9Wbru7pyjQiNw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: 40tude_Dialog/2.0.15.84
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
X-Notice: Filtered by postfilter v. 0.9.2
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
 by: JJ - Thu, 30 Sep 2021 10:55 UTC

On Thu, 30 Sep 2021 08:01:04 -0000 (UTC), Ammammata wrote:

> Hello
>
> as per subject, I'd like (if possible) to move about 45 thousands files in
> related subfolders according to their extension
>
> subfolders have already been created
>
> thank you

It's possible. See its documentation. Type: robocopy /?

Re: robocopy : move files in subfolders according to extension

<XnsADB5943DEF207ammammatatiscalineti@127.0.0.1>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=109&group=alt.msdos.batch#109

  copy link   Newsgroups: alt.msdos.batch
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ammamm...@tiscalinet.it (Ammammata)
Newsgroups: alt.msdos.batch
Subject: Re: robocopy : move files in subfolders according to extension
Date: Thu, 30 Sep 2021 12:34:18 -0000 (UTC)
Message-ID: <XnsADB5943DEF207ammammatatiscalineti@127.0.0.1>
References: <XnsADB565EADAA8Aammammatatiscalineti@127.0.0.1> <1xzvkhybykq7e$.1n9dycwxklmex$.dlg@40tude.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 30 Sep 2021 12:34:18 -0000 (UTC)
Injection-Info: solani.org;
logging-data="17013"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Xnews/??.01.30 Mime-proxy/2.3.c.1 (Win32)
X-User-ID: eJwFwQkBACAIA8BK8mxiHEToH8E7GIW1naBjMLSTJsLB1by63JImfd57RJuQQ+7xVVJRvaIip+RAFRreHz+IFP8=
Cancel-Lock: sha1:nd12ykdP7/L9FuzcCox812J70d0=
X-Face: s5/Tl9"^@"z`/]&NeE,Wl.^B~E2x9PA?1n:XZq2^T2Prz*},H~M'2.*@~v9MXx|OL8<EqC0MU$v+`Pu;`eq$N12\Nc*)cp$iBgD/wysO=)P%n6)\Xf}L\E$-0s\mD::Dx\6QwNh<U!LBH1Xj(=zy?OV.|=]We",DS\6[:
 by: Ammammata - Thu, 30 Sep 2021 12:34 UTC

Il giorno Thu 30 Sep 2021 12:55:31p, *JJ* ha inviato su alt.msdos.batch il
messaggio news:1xzvkhybykq7e$.1n9dycwxklmex$.dlg@40tude.net. Vediamo cosa
ha scritto:

>
> It's possible. See its documentation. Type: robocopy /?
>
>

well, thank you, but actually at the end I did it manually because the
number of different extensions was limited

then, in each folder, I ran a partially modified code to split the files in
subfolders yyyy-MM-dd, according to last modification date, using
powershell

source:
https://www.thomasmaurer.ch/?p=6984

--- start of code ---
# Get the files which should be moved, without folders
$files = Get-ChildItem '.\' -Recurse | where {!$_.PsIsContainer}
# Target Filder where files should be moved to. The script will
automatically create a folder for the year and month.
$targetPath = '.\'
foreach ($file in $files)
{ # Set Directory Path
$Directory = $targetPath + $file.LastWriteTime.Date.ToString("yyyy-MM-dd")

# Create directory if it doesn't exsist
if (!(Test-Path $Directory))
{ New-Item $directory -type directory
}
# Move File to new location
$file | Move-Item -Destination $Directory
} --- end of code ---

--
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
-=- -=- -=- -=- -=- -=- -=- -=- - -=-
............ [ al lavoro ] ...........

Re: robocopy : move files in subfolders according to extension

<fhqblgdms1fiac1apfqaqjfmckl2djjplq@4ax.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=110&group=alt.msdos.batch#110

  copy link   Newsgroups: alt.msdos.batch
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 30 Sep 2021 11:50:47 -0500
From: pha...@mindspring.com (pyotr filipivich)
Newsgroups: alt.msdos.batch
Subject: Re: robocopy : move files in subfolders according to extension
Date: Thu, 30 Sep 2021 09:50:46 -0700
Organization: Fortesque D&R Labs
Reply-To: phamp@mindspring.com
Message-ID: <fhqblgdms1fiac1apfqaqjfmckl2djjplq@4ax.com>
References: <XnsADB565EADAA8Aammammatatiscalineti@127.0.0.1>
X-Newsreader: Forte Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 17
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 73.59.74.45
X-Trace: sv3-t3rxn0askCSO2gnCblu8uV6avt51hH+36L4cQUi53W34aCXBkZ0Kl5US5cugPqzothH5MlgUXkxjqS9!TT/eNDvFuynQmS6+AhCD78RREHGeUP76dAd4NzsM0PF2kyCZRWBy3MIheHoEMrmEH+t9nJ0yynJu!SEWhMOIZzDF9pEAVJHjE1K8=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1693
 by: pyotr filipivich - Thu, 30 Sep 2021 16:50 UTC

Ammammata <ammammata@tiscalinet.it> on Thu, 30 Sep 2021 08:01:04 -0000
(UTC) typed in alt.msdos.batch the following:
>Hello
>
>as per subject, I'd like (if possible) to move about 45 thousands files in
>related subfolders according to their extension
>
>subfolders have already been created
>
>thank you

robocopy source target /if *.%extension% /move
--
pyotr filipivich
This Week's Panel: Us & Them - Eliminating Them.
Next Month's Panel: Having eliminated the old Them(tm)
Selecting who insufficiently Woke(tm) as to serve as the new Them(tm)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor