Skip to content

Random Document

MrXMrX Germany
edited April 2013 in Need Help
Hi, I wanted to pick a random document from a few pdf files within my documents folder (like you can do with article titles, bodys ...)
I took the %spinfolder% command but GSA tries to read the file, which is obviosly not my target. Is there any command to randomly pick a file from a folder but return only the files path+name instead of its content ?

Comments

  • SvenSven www.GSA-Online.de
    As far as I remember, you can also use spinfolder on that field and the program will work with that.
  • edited April 2013
    windows>start>run>cmd, input"cd your folder path" without quotation marks, then type "dir /b/s *.* >dir.txt", you will find a txt file named "dir.txt", then use macro to take a random line from that file in SER. you can write a .bat file so that all you need to do is double click and the "dir.txt" file is done, take a minute Google it.
    Maybe some pros in this forum will share better approach to this.
  • AlexRAlexR Cape Town
    Use %spinfolder-<pdf folder>% and have .pdf's in that folder. Works wonders. 
Sign In or Register to comment.