Hi Loungers
When I run the following batch file in Win7 with admin rights the MD command wont work, but if I run it without admin rights the MD will work but then Drive Image wont work (because it needs to run under an elevated UAC). L is a network drive (LaCie NAS box). I give the .bat file admin rights by creating a shortcut to it and giving the shortcut admin rights.
From grazing the web it appears this is a known problem in Win7 but none of the suggested solutions I could find worked with my situation.
A key thing is I need all the code in the same file as the set command does not persist between different cmd sessions ie I use the %folder% variable in both the MD and the Drive Image lines.
set folder=%date:~10,4%_%date:~7,2%_%date:~4,2%
md L:DriveImages%folder%
“C:Program Files (x86)Runtime SoftwareDriveImage XMLdixml.exe” /bc /tL:DriveImages%folder% /c2 /r- /s- /l
Any suggestions?
Many thanks for your help.
Merf