1.

Solve : Bat File?

Answer»

Good Morning,

I have created .Bat files to copy files from ONE server to anohter. I'm USING the xcopy command and when I execute the bat file it just flashes a Dos Screen and goes away. (Example just GOING from directory to directory)

xcopy d:\Program Files\Microsoft SQL Server\MSSQL\Backup\*.* D:\Batch_File_Testing\ /s /r

It seems to me that the spaces in the folder names seem to be the problem, if I take out the spaces then it works if I LEAVE the spaces it will not work. Is there a way around this?
Enclose the path\filename in DOUBLE quotes like "c:\program files\file name"



Discussion

No Comment Found