Skip to content
View in the app

A better way to browse. Learn more.

Thailand News and Discussion Forum | ASEANNOW

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Writing A Simple Program Or Batch File

Featured Replies

Does anyone know how to write a small batch file or program that I could use to transfer 20 files out of one directory to another every three or five minutes. I realize that I can schedule a task in Windows XP through the Control Panel, but, then I need a batch file or exe file to actually schedule. I do not remember for the life of me how to write those darned things.

The intent is to allow others shared access to the data that I send to a specific direcory. I also do not want to allow any access to the originating locations where the data is compiled, so that they cannot change the data. My updated data would have to overwrite the older files every 3 to 5 minutes. :o

open notepad.

type this:

copy /Y c:/folder1/folder2/*.dat (an example file extension) c:/destination/folder/

exit

then save it as "sync.bat" or something to your liking. run that from the scheduler, possible even modifying the shortcut so the window stays minimized when ran.

hope this helps, and excuse any errors (have not used DOS in a long time)

Cheers

./P

hi'

I was thinking of using a backup program ...

scheduled to a fixed interval time, and not at the end of session like they are mostly used.

could this make the trick?

something like sync-backup de Iomega that I used before to transfer files at random time,

directly to zip disc, and could be overwritten ... it was not bad at the time :o

francois

A problem will occur if the copy of the file is open by another user when the bat file schedules to run. It will only successfully copy if it isn't in use.

Maybe your users also need a bat file to take their own copy of the copied file before they open it for read access.

Can't you just set read permissions for the other users on the share whereas you have full or at least change permissions and work directly with the files in the share?

They could then just copy it from that share to their own computers

  • 2 weeks later...

XCOPY is better, with more options.

I use

XCopy E:\Alan\*.* Z:\alan\ /v/D/s/e/y/r /k/f

in a small .bat file.

Try xcopy /? to see what all the options do.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.