How can I publish the contents of a directory automatically?
by deadair4ever on June 5, 2010Q: How can I publish the contents of a directory automatically?
What I want to do has 2 parts:
1) Automatically create and update a document which lists the FOLDERS on a hard drive
2) Automatically have that document publish to Google Documents or something similar (public)
END RESULT: I want to let anyone in the world know what folders are on one of my hard drives, automatically, updated at least once a day, without having to touch it. Does not need to list the individual files, just the folders. Maybe someone has an easy or elegent solution? Running Win7 Home Premium.
Tags: website
https://www.dropbox.com should meet your needs. See their site for details.
Mark (Uber Geek) says: on June 7, 2010 at 7:18 am
Here’s what worked: Task Scheduler running the following .BAT, and sending it to my DropBox public folder (THANKS Uber Geek!!!)
@echo off
time /t > time.txt
date /t > date.txt
copy time.txt+date.txt timedate.txt
del time.txt
del date.txt
dir D:\Folder1 /b /o-d > list1.txt
dir F:\Folder2 /b /o-d > list2.txt
copy timedate.txt+list1.txt+list2.txt C:\DropBoxFolder
del list*.txt
del timedate.txt
exit
deadair4ever (Newbie) says: on June 10, 2010 at 12:36 pm