Search results

  1. q988988

    How to copy files into corresponding folders?

    right! the file type! thanks heaps
  2. q988988

    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?
  3. q988988

    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?
  4. q988988

    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...
  5. q988988

    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...
  6. q988988

    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.
  7. q988988

    How to copy files into corresponding folders?

    It worked! Is is possible to copy the files into those folders rather than moving them?
  8. q988988

    How to copy files into corresponding folders?

    It seems like it does not like the "} " at the end?
  9. q988988

    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?
  10. q988988

    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...
  11. q988988

    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?
  12. q988988

    How to copy files into corresponding folders?

    I created a text file (not sure how to create Python file) then changed the extension to ".py" and copied your code into it using Notepad++, but it did not seem to run as expected? Or I have to run it under a specific folder path? I would expect a prompt to show up to let me choose the...
  13. q988988

    How to copy files into corresponding folders?

    Thanks! I will wait for your code then!
  14. q988988

    How to copy files into corresponding folders?

    Thanks for the help! I am going to try Python first. Does either of these two methods have some sort of UI that allows me to choose the folder path each time before I run it? Because the folder path will be different every time.
  15. q988988

    How to copy files into corresponding folders?

    I have a list of csv files that have to be copy into a list of folders with same names. Rather than manually cutting each one into the corresponding folder, is there a trick of doing this in windows?
Top