Batch script, file modification time updating
Closed
Hello,
I'm basically looking for a helping hand in making a little batch script. What I need is for it to modify the file modification time of a given file (static) every five minutes and ONLY if the file exists. I would also like it to either run in the background and/or be invisible - i.e. no command window. That's it. The computer in question is running on Windows XP SP2 and the drive is a WD Passport if that matters.
If you're wondering why I need this, it's because the WD Passport is connected to my media center and it keeps falling asleep, which is a pain because I can't seem to wake it up remotely. The solution I have now is dependant on a second computer (my laptop) and a quick and dirty PHP script with crontab triggering it. I want something that can survive on it's own.
Thanks in advance!
I'm basically looking for a helping hand in making a little batch script. What I need is for it to modify the file modification time of a given file (static) every five minutes and ONLY if the file exists. I would also like it to either run in the background and/or be invisible - i.e. no command window. That's it. The computer in question is running on Windows XP SP2 and the drive is a WD Passport if that matters.
If you're wondering why I need this, it's because the WD Passport is connected to my media center and it keeps falling asleep, which is a pain because I can't seem to wake it up remotely. The solution I have now is dependant on a second computer (my laptop) and a quick and dirty PHP script with crontab triggering it. I want something that can survive on it's own.
Thanks in advance!
Related:
- Batch script, file modification time updating
- Windows 10 iso file download 64-bit - Download - Windows
- Popcorn time download - Download - Movies, series and TV
- Ocarina of time rom - Download - Action and adventure
- Dvi file - Guide
- Messenger file downloader - Guide
2 responses
Couldn't see anything immediately that would fit my needs.... and even if I did, it'd probably be a lot of overkill using a full flown GUI application. I just need something equivalent of:
<?php
if(file_exists('/Volumes/EEE-320GB/KEEPALIVE.txt')) {
@touch('/Volumes/EEE-320GB/KEEPALIVE.txt');
}
?>
and for it to happen every 5 minutes with no command window popping up.
<?php
if(file_exists('/Volumes/EEE-320GB/KEEPALIVE.txt')) {
@touch('/Volumes/EEE-320GB/KEEPALIVE.txt');
}
?>
and for it to happen every 5 minutes with no command window popping up.
caBassileM
Posts
7
Registration date
Wednesday February 4, 2009
Status
Member
Last seen
June 9, 2009
1
Mar 11, 2009 at 04:35 AM
Mar 11, 2009 at 04:35 AM
hi,
there are some softwares that can do the job for you.
try this link to see if they correspond to what you are searching for:
http://www.soft411.com/software/file-attribute.html
there are some softwares that can do the job for you.
try this link to see if they correspond to what you are searching for:
http://www.soft411.com/software/file-attribute.html