copy added file to new folder - file

I have a folder on a webb server that the user can upload files to, I need to have a script that monitor that folder and whenever a new file is uploaded or changed I would like to copy that file to another folder on my server. This script should be monitoring the source folder all the time. Is this possible in a Windows Server 2008R2?

Related

How can run a batch file after running a software?

for using the latest version of our templates, I want to copy the templates from our server to the user's local machine. but I want the templates will be copied to the local machine when the PowerPoint load and runs. I created a batch file to copy templates from server to local machine and I am looking for a way to run automatically this batch file after each time PowerPoint running.
I convert batch file to exe file that first copy templates to a local machine then run PowerPoint.exe.
with that method, my problem has been solved and it works fine.

How to Copy files in FTP path

i have FTP created inside Default FTP Site on one server name A and trying to copy files from other server B and trying to place in Server C through batch script, which is configured in A as physical path, i can see transfer is happening but its going in root folder of A which is not correct. Please suggest me what code i need to write in batch script which can place file on sever c.
If you want to keep directory structure, you can compress to zip with directories and unzip at target. This may also reduce file transfer load. But if you wanna make it one by one, in the batch file, store full path and check full path at target. At target, create full path and copy file if path exists.

File Poller in BusinessWorks

In the BW Designer, File Poller can look for file in the local server where the Designer is installed.
But If I want the File Poller to look at another server instead of the local server, I don't see any option to do that.
Is there any other way so that I can use File Poller to look on any other server and poll file from that server instead of the server where the Designer is installed?
Thanks
The File Poller can only access files and directories visible to the system the engine is running on, so you need to mount a network drive to poll files sitting on a remote server.
Another option would be to build a custom polling mechanism using the FTP Palette. You could use a Timer instead of a File Poller. On the first execution, the process would list the files in the remote folder using the FTP Dir activity then store this list in a Shared Variable. This list would contain the file names, last modification dates, etc.
Every time the process is triggered, it would run FTP Dir to compare the current list of files against the previous one to detect any changes (new files, modified files, etc.) then update the Shared Variable to keep the latest image of the remote folder. You could then run FTP Get to retrieve any new or modified file.

reporting services physical path of the folder

I created a folder using the Report Manager URL but I would like to copy all the files to the different folder. Where is my folder located? I searched it but couldn't find it. Please let me know.
They aren't stored as physical files. They are stored in the Reporting Services database (called ReportServer by default if you don't have a named instance.)
You can't directly copy the files, but you can move them with the Report Manager interface.
To copy the files, use the RS scripting utility, or download and then upload the .rdl files to the new location.

SSIS delete folders named with a date

My process ceates automatically some new folders named with a date i.e (09-01-2011) in a directory (Archive)
How can I check the date of the folder in the directory and delete those older than a certain date?
Thanks
Use for_each_folder_enumeration technology from here:
http://microsoft-ssis.blogspot.com/2011/01/foreach-folder-enumerator.html
Analyze folder name using Script component
Check if folder is empty using Microsoft suggestion: http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/a3240e00-ac9d-4082-b1e4-72bd7f695524/
Move folder using File System Task (Copy directory)

Resources