F5F Stay Refreshed Software Operating Systems Sure, I can assist with creating or understanding batch scripts (.bat files). Let me know what you need!

Sure, I can assist with creating or understanding batch scripts (.bat files). Let me know what you need!

Sure, I can assist with creating or understanding batch scripts (.bat files). Let me know what you need!

Pages (2): 1 2 Next
S
Soruz
Member
63
01-24-2016, 12:52 AM
#1
Learn the steps to make a .bat script that runs every 10 minutes. It will verify if the file is updated and then move it to another spot on the C: drive. Use the C:\server folder and the IP.text file as examples.
S
Soruz
01-24-2016, 12:52 AM #1

Learn the steps to make a .bat script that runs every 10 minutes. It will verify if the file is updated and then move it to another spot on the C: drive. Use the C:\server folder and the IP.text file as examples.

W
WhoMouse
Junior Member
13
01-25-2016, 06:46 PM
#2
Essentially, it's a copy of your data to protect against loss or damage.
W
WhoMouse
01-25-2016, 06:46 PM #2

Essentially, it's a copy of your data to protect against loss or damage.

A
AnteaterCow99
Junior Member
12
01-25-2016, 09:13 PM
#3
The script primarily copies files without verifying their existence or integrity. It focuses on duplication rather than checking for existing files.
A
AnteaterCow99
01-25-2016, 09:13 PM #3

The script primarily copies files without verifying their existence or integrity. It focuses on duplication rather than checking for existing files.

P
PersieO
Posting Freak
786
02-14-2016, 07:03 PM
#4
Create a batch file with the command line you specified. Set up a scheduled task to run it every ten minutes. Adjust path formatting if needed.
P
PersieO
02-14-2016, 07:03 PM #4

Create a batch file with the command line you specified. Set up a scheduled task to run it every ten minutes. Adjust path formatting if needed.

S
SHAW_ANTHONY
Junior Member
16
02-14-2016, 11:12 PM
#5
the batch script wasn't intended for that purpose, but verifying changes should be straightforward if you check the file's metadata for the last modified time. (you don't have to open the file itself, just focus on its metadata.) was the "IP.txt" example meant to guide this task? there might be more efficient approaches to handling what you're aiming for.
S
SHAW_ANTHONY
02-14-2016, 11:12 PM #5

the batch script wasn't intended for that purpose, but verifying changes should be straightforward if you check the file's metadata for the last modified time. (you don't have to open the file itself, just focus on its metadata.) was the "IP.txt" example meant to guide this task? there might be more efficient approaches to handling what you're aiming for.

R
Robang592
Senior Member
368
02-15-2016, 06:03 PM
#6
Welll, i guess you can put it that way. But first it should check if it was updated
R
Robang592
02-15-2016, 06:03 PM #6

Welll, i guess you can put it that way. But first it should check if it was updated

H
henry1028
Member
60
02-16-2016, 11:03 AM
#7
you might opt for a fast approach and implement a loop with a 10-minute nap.
H
henry1028
02-16-2016, 11:03 AM #7

you might opt for a fast approach and implement a loop with a 10-minute nap.

S
SugarCandy21
Member
196
02-16-2016, 06:45 PM
#8
Also note that robocopy won't re-copy unless there was an update...
S
SugarCandy21
02-16-2016, 06:45 PM #8

Also note that robocopy won't re-copy unless there was an update...

L
Leewisz
Junior Member
19
02-18-2016, 01:05 AM
#9
I recently discovered that .bat scripts can handle file movement, which means they might work similarly for copying updated files. If you have a more refined method for copying updated files, feel free to share.
L
Leewisz
02-18-2016, 01:05 AM #9

I recently discovered that .bat scripts can handle file movement, which means they might work similarly for copying updated files. If you have a more refined method for copying updated files, feel free to share.

M
MrKiwiism
Member
236
02-19-2016, 10:13 PM
#10
You can verify its current position, as moving it would prevent it from being found in its original spot and trigger an error when attempting to access it.
M
MrKiwiism
02-19-2016, 10:13 PM #10

You can verify its current position, as moving it would prevent it from being found in its original spot and trigger an error when attempting to access it.

Pages (2): 1 2 Next