Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I'm running a batch file to delete some old log files in the "Microsoft SQL Server" folder. It works fine when I test it in a short path like "C:\testfolder", but if I use the path with a space in the folder name like this "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\LOG200", it will not delete the file. The message showing:"The system cannot find the file in C:|Program ". That means the program ignored the path after the space if the folder name. So how can I work with the space in the path of the file in batch program?Thanks.

Is the batch a secret?
=====================================
If at first you don't succeed, you're about average.M2

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |