-
Windows 10 Powershell code to copy files into a specific folder
Could you help me out with an extra line of code to exclude the items under Folder B and only copy the items in its sub folder (Folder C)?- q988988
- Post #7
- Forum: Windows Help and Support
-
Windows 10 Powershell code to copy files into a specific folder
There are other AVI files under Folder B which should not be copied, I hope this code here will not copy them over?- q988988
- Post #5
- Forum: Windows Help and Support
-
Windows 10 Powershell code to copy files into a specific folder
Thanks! What if some of the AVIs are already copied into the folders? will the code overwrite the existing AVIs or just skip?- q988988
- Post #3
- Forum: Windows Help and Support
-
Windows 10 Powershell code to copy files into a specific folder
I am just trying to copy the AVI files from a source folder into the corresponding destination folder based on the folder names. For example, the multiple AVI files under Folder C should be copied into Folder xx based on the name"10Q_2P". I guess the trick here would be the name folders...- q988988
- Thread
- automation avi files directory search file copy file management file transfer folder names powershell scripting windows
- Replies: 7
- Forum: Windows Help and Support
-
Windows 10 How to copy files into corresponding folders?
right! the file type! thanks heaps- q988988
- Post #28
- Forum: Windows Help and Support
-
Windows 10 How to copy files into corresponding folders?
I tested a couple of more times...it just did not work the a more complicated file name rather than A,B,C... anyone can help out?- q988988
- Post #26
- Forum: Windows Help and Support
-
Windows 10 How to copy files into corresponding folders?
Maybe there is a limitation in the code by default that only allows for the file name to have a certain number of character?- q988988
- Post #25
- Forum: Windows Help and Support
-
Windows 10 How to copy files into corresponding folders?
This is weird...because all the files with simple names got moved over except the one shown in the screenshot...- q988988
- Post #24
- Forum: Windows Help and Support
-
Windows 10 How to copy files into corresponding folders?
How about the file names? I just did a test... the code worked fine with the file names A,B,C but not for a bit more complex names. And the code also worked fine for the folders with existing non-xlsx files. SO the only issue left would be the file names. Is it possible to make some tweaks on...- q988988
- Post #22
- Forum: Windows Help and Support
-
Windows 10 How to copy files into corresponding folders?
Does this code work for the file name like 22B_1? Also the folder already contains files before I run the code. Will these two conditions affect the code? Because the code worked for the example I had previously (file A->Folder A, etc) but it did not seem to work for a bit more complicated case.- q988988
- Post #20
- Forum: Windows Help and Support
-
Windows 10 How to copy files into corresponding folders?
It worked! Is is possible to copy the files into those folders rather than moving them?- q988988
- Post #19
- Forum: Windows Help and Support
-
Windows 10 How to copy files into corresponding folders?
It seems like it does not like the "} " at the end?- q988988
- Post #17
- Forum: Windows Help and Support
-
Windows 10 How to copy files into corresponding folders?
I ran the code with PowerShell with two prompts showed up to choose two paths and ended with OK, but the files did not move across?- q988988
- Post #15
- Forum: Windows Help and Support
-
Windows 10 How to copy files into corresponding folders?
Following is what I have in the py file, but it does not seem to work: Add-Type -AssemblyName System.Windows.Forms $SourceLocation = New-Object System.Windows.Forms.FolderBrowserDialog $SourceLocation.Description = "Z:\Files" $SourceLocation.ShowDialog() $DestinationLocation = New-Object...- q988988
- Post #13
- Forum: Windows Help and Support
-
Windows 10 How to copy files into corresponding folders?
So all I need to do is to replace "Select a Source Directory" and "Select a Destination Directory" with "Z:\Files" and "Z:\Folders" respectively, then run the .py file?- q988988
- Post #12
- Forum: Windows Help and Support