Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: DriveAlive bat startup

3 Weeks Ago   #1
teckneeculler

Win7Ultimate
 
 
DriveAlive bat startup

I have a 6TB USB storage drive.
Last April I asked you guys how to best utilize a small free app called DriveAlive to startup and shutdown that drive.

(DriveAlive, together with many other great little apps, can be found here: Miles Ahead's Windows Downloads)

TheDeerDude replied:

Quote   Quote: Originally Posted by TheDeerDude View Post
I'm thinking, a batch file would do the job - located in the same directory as drivealive, but not neccessarily.
That, and maybe task scheduler would help you accomplish what you're aiming for?

Does drivealive run under its own process? e.g. drivealive.exe?

You could have

Code:
@echo off
drivealive x:
to start it, and use taskkill to end it

Code:
@echo off
   taskkill /f /im drivealive.exe
These bats worked fine until a recent system crash and rebuild, forcing me to reinstall everything, including DriveAlive.

I have it sorta working again, but there's a small oddity I'd like to fix. On first run of the Start bat, an empty command window pops up. Unless I 'x' it shut, it remains there for five minutes and then disappears.

I've tried adding exit and cls to the command but neither of those shut the box.

Suggestions welcomed.

PS: DriveAlive works by writing 'drive_alive_dummy.txt' to the root of the 6TB drive. Five minutes later it deletes the text file. Five minutes after that it writes 'drive_alive_dummy.txt' again. And so on, ad infinitum, unless the Stop bat is run. The command line box disappears after five minutes, apparently coinciding with the removal of the first textfile, and doesn't appear again.
PPS: When the Stop bat is run, there's no popup command box.


My System SpecsSystem Spec
.
1 Week Ago   #2
Paul Black

Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
 
 

Quote   Quote: Originally Posted by teckneeculler View Post
I have it sorta working again, but there's a small oddity I'd like to fix. On first run of the Start bat, an empty command window pops up. Unless I 'x' it shut, it remains there for five minutes and then disappears.

I've tried adding exit and cls to the command but neither of those shut the box.
[1] Is that all of the .bat code?
[2] What is shown in the Title of the cmd Window that pops up?
My System SpecsSystem Spec
1 Week Ago   #3
teckneeculler

Win7Ultimate
 
 

Thanks, Paul Black.
[1] Well, yeah. That's what the TheDeerDude said to do.
[2] And the title of the command box is 'start.bat - Shortcut'

The text in the start .bat is:

@echo off
DriveAlive M:

M being the letter I allocated to my movies USB hdd.
My System SpecsSystem Spec
.

Reply

 DriveAlive bat startup




Thread Tools




Similar help and support threads
Thread Forum
Startup script runs manually, but fails in Group Policy'startup folder
I have startup script that opens several network folders, which works perfectly when run manually from the cmd prompt or from windows explorer, but shows several errors on startup of the computer (cold start or restart). On a cold start or restart we get network errors 85 and 53 and then the script...
General Discussion
BSODs on Startup / Startup Failures / Comp Starts Every Other Time
Hi sevenforums, I have a three year old custom built desktop. Specs are as follows: Operating System Windows 7 Ultimate 64-bit SP1 CPU Intel Core i7 3770K @ 3.50GHz RAM 32.0GB Dual-Channel DDR3 @ 927MHz (10-11-10-27)
BSOD Help and Support
BSOD on startup, unknown error, startup repair running too long
As the title suggests, my Acer Aspire has been running startup repair for over 20 hours following a BSOD yesterday. I'm not sure if it's worth the wait so maybe you all can shed some light. Yesterday I was stressfully trying to search for something (using Chrome) and the website I was on froze;...
BSOD Help and Support
Error 0101003 Keyboard no detected, stuck on startup/startup repair
Hi guys I was cleaning my laptop turned it on and it just wouldn't work so I turned it off and on again and it was giving me this error code saying my keyboard is not detected in start up. It then says there was a problem and shoots me to startup repair where it's just stuck not doing anything. My...
BSOD Help and Support
BSOD on startup , error 0x000000f4 . startup takes half an hour
so everything was fine when my laptop started to become very slow and i used to get the BSOD very often so i decided to recover the system to the initial state . i did that and everything was fine , then i updated the windows 7 service pack 1 and finished the installation and rebooted my computer ,...
BSOD Help and Support


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:15.
Twitter Facebook