This works, to back up C drive to \\DEST_SERVER\E$\SHARE, if disk2vhd.exe is within the path:
REM
REM A simple backup system using disk2vhd
REM
REM version 1.3, by J.E.B., 2011-02-22
REM
REM requires 'disk2vhd.exe' to be in the path
REM
setLocal EnableDelayedExpansion
REM "DRIVES" can be one drive identifier with colon, multiple separated by spaces,
REM or asterisk for all.
REM "DEST" can be a drive letter or a UNC.
SET DRIVES="*"
SET DEST="\\SERVER\SHARE"
REM Keep most recent 4 VHD files in DEST, delete the rest
for /f "skip=4 tokens=* delims= " %%a in ('dir/b/o-d %DEST%\*.VHD') do (
del %DEST%\%%a
)
REM Backup to VHD
C:
cd \
DISK2VHD %DRIVES% %DEST%\D2VBK--%date:~-10,2%%date:~-7,2%%date:~-4,4%_TS.VHD
Put the below in a VBS file and run it (from a batch file perhaps) with ‘wscript filename.vbs’.
' The name of the share.
strShareName = "SHARE"
' SERVERNAME has to be the hostname of the machine containing the sahre
Set objfServer = GetObject("WinNT://SERVERNAME/lanmanserver")
objfServer.Delete "Fileshare", strShareName
Set objfServer= Nothing
A very good example is on this page:
http://ss64.com/nt/ftp.html
This works in .CMD files! A nice little message box.
msg * Hello!!!!!!!!!!
Just learned this: in scripted Web applications, there are sometimes incompatibilities between XPSP3 and Adobe Reader 9. Sometimes both SP3 and Reader 9 have had to be rolled back to previous versions, sometimes just one of the two.