I'm trying to make a script to backup SkyDrive folder which I'll schedule in Task Scheduler. This is it..
This works fine but my E: drive is in a docking station so I want to check that the docking station is connected (that is the E: drive exists) before running it. Is that possible?Code:@echo off if not exist E:\FileHistory\%username%\SkyDrive MD E:\FileHistory\%username%\SkyDrive xcopy %userprofile%\SkyDrive\*.* E:\FileHistory\%username%\SkyDrive /c /d /e /g /h /i /k /o /q /r /v /x /y > E:\FileHistory\%username%\SkyDrive\xcopy.log