I want to make a batch file to.... RRS feed

  • Question

  • Hi.

    I'm working through several hundred pdf files, and would like to move them to a subdirectory once I close the file.

    I don't have any programming languages on my system, except what's included in Office 2010-- vba.

    Where would I post to be able to make a batch file that would allow me to automatically move individual pdf files, once I close them? 

    I've been looking on good, and here, and while I see several "move-multiple" file options, I don't see anything that'd allow me to move a file once I close it-- automatically, without my doing so manually. 


    Monday, August 31, 2015 10:03 PM


All replies

  • Batch is basically obsolete and won't help you.

    VBA won't help you, since you're working with PDF files.

    What you're asking may not be possible, especially with the loose requirements you've mentioned.

    I'd ask in the forums of whatever PDF editor you're using to edit the files to see if there's something you can do via that application.

    Monday, August 31, 2015 10:51 PM
  • Batch is obsolete.... ok.

    I figured it's a windows thing that I'm asking for, which is why I've asked here. 

    We just have adobe's reader, not the full version of acrobat. 

    Is there any language which would allow me to move a file "onclose"?

    Monday, August 31, 2015 10:59 PM
  • Likely all of them. I don't know, I'm not a developer.

    If I was doing this via PowerShell, I'll gather the filenames and run them through a loop. Inside that loop I'd launch Reader and then loop until that PID was gone. After that inner loop exits I'd move the file to finish the outer loop.

    PowerShell starter material can be found here:


    If you run into problems, you can post specific questions along with your code and errors (very important to post your code and errors or you won't get any real help) in the PowerShell forum here:


    There's a script repository here where you can look through examples:


    Good luck.

    • Proposed as answer by Dave PatrickMVP Tuesday, September 1, 2015 2:58 AM
    • Marked as answer by SteveDB1 Tuesday, September 1, 2015 3:09 PM
    Monday, August 31, 2015 11:16 PM