@date /T
@time /T
osql -E -S server2\inst1 -i detach.txt
vxassist -g vg1 unassign \Device\HarddiskDmVolumes\vg1\SnapVolume01
vxassist -g vg1 unassign \Device\HarddiskDmVolumes\vg1\SnapVolume02
vxrvg -g vg1 -f snapback vg2
vxrvg -g vg1 -f snapshot vg2
ping 127.0.0.1 -n 100 > nul
vxassist -g vg1 assign \Device\HarddiskDmVolumes\vg1\SnapVolume02 DriveLetter=M
vxassist -g vg1 assign \Device\HarddiskDmVolumes\vg1\SnapVolume01 DriveLetter=N
osql -E -S server2\inst1 -i attach.txt
@echo;
@date /T
@time /T
@echo;
@echo --------------END--------------