Viewing 15 posts - 16 through 30 (of 618 total)
$source="c:\fileloading" #location of starting directory
$destination="c:\filecopy"; #location where files will be copied to
$files=@("*dys_ihhist*")
Get-ChildItem -recurse ($source) -include ($files) | Copy-Item -Destination ($destination + ($file.BaseName + "_" + (Get-Date -Format...
July 27, 2023 at 5:15 pm
Thats maybe the issue I don't want a new directory just copy files from Source that conatain "$files=@("*dys_ihhist*")"
in there file name to DEST
Before:
dys_ihhist.txt --> found on Source
Copy to Dest
dys_ihhist_072023.txt
July 27, 2023 at 4:08 pm
Thanks Jeff.. correct on incorporating the solution. I don't want a NEW folder created just a MMYYYY inserted into filename as it's copied to Dest folder.
Thanks again.
July 27, 2023 at 3:24 pm
Any help getting this to work?
THanks.
July 27, 2023 at 11:21 am
I'm just trying to copy file with new MMYYYY into the folder filecopy
July 25, 2023 at 3:03 pm
$source="c:\fileloading" #location of starting directory
$destination="c:\filecopy"; #location where files will be copied to
$files=@("*dys_ihhist*")
New-Item -ItemType Directory -Force -Path ($destination); Get-ChildItem -recurse ($source) -include ($files) | Copy-Item -Destination ($destination +...
July 25, 2023 at 3:00 pm
Is it trying to create a New directory
Copy-Item : Access to the path 'C:\filecopy_072023' is denied.
At line:5 char:112
Thanks.
July 25, 2023 at 2:47 pm
This code seems to find each TAB, but how can I combine with above script to load both tabs to different Tables in SQL?
param(
...
July 19, 2023 at 12:46 pm
# Variables for Import-Excel
$FolderName = "c:\fileloading\"
$FileName = "book1.xlsx"
$FileNameWithFolder =...
July 19, 2023 at 1:33 am
Emperor100 -- Many thanks that's exactly what I was looking for... sorry if my description of the problem seemed confusing.
Thanks again.
April 24, 2023 at 12:44 pm
Emperor100,
Thanks for replies it appears the query you had suggested retrieves multiple custnbr's and avglag. I was hoping that the query returns
a single custnbr(based on Max Shipdate) then based onprevious...
April 23, 2023 at 11:22 pm
Sorry I was using the wrong name ... Shipdate should be used in all occurrences.
This is the backend table that drives the view.
Thanks.
CREATE TABLE [dbo].[ConHist_PY](
[InvoiceNbr] [nchar](10) NOT...
April 21, 2023 at 10:58 am
Viewing 15 posts - 16 through 30 (of 618 total)