Do you get an error when you attempt to run the .bat file?
Several things to check. Do you have an O: drive defined? There is a missing " from the xcopy command, is that a typo or is it missing in the .bat file too?
Where do you have the .bat file saved on your computer? Are you trying to run it from the same folder as where it is saved? If not, is the folder that contains the .bat file listed in your PATH environment variable?