Discussion Locked

Move files automatically when created

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is there a utility that will move a file to a different location as soon as it is placed in a folder? I am trying to find a more efficient way than my program which does the following:
1. In runs all the time.
2. It looks into Folder A. If a file is located in that folder, it moves it to Folder B, leaving Folder A empty.
The reason for this is that I am receiving files through a modem at different times. I need those files available to other users on the network, but I want the externalsource to place it on the workstation which has the modem. I do not want to grant the external sender to have access to the LAN.

5 replies

by dawsopolis

You are using an NT network, right? All you should have to do is share the folder, set security so that the caller that deposits files has write access only to that folder.

The easiest thing to do i'd think is to set up an ftp site, apply the proper securities and then allow your LAN users acces to it as a shared network folder.

I do not know of a program that does what you ask.

by frankus

Thanks. In the meantime I found another way using a utility called
Launchpad (very inexpensive) which can be triggered to move files when a file shows up in a folder

by ttrinh

Assuming you want to do this on an NT workstation...

Use the following batch file
-------------------
if exist c:\folderA\*.* goto moveit
goto exit

:moveit
copy c:\folderA\*.* \\yoourserver\share1
del /q c:\folderA\*.*

:exit
---------------------
you can save that batch as moveit.bat then using the AT schedule to run the batch file every hour, or more often as you want.

Note the Q switch in the del command. Without this switch, the command will stop and ask you before deleting each file.

Of course, scheduling this to run more often would be tedious, but if you know a little VB, it is simple to use a timer in VB to schedule the batch to run every minute if you want.

Tuan Trinh

by frankus

Thanks. This helps. In the meantime I found another way using a utility called
Launchpad (very inexpensive) which can be triggered to move files when a file shows up in a folder

This discussion is closed to new replies.