Computing.Net > Forums > Disk Operating System > Batch file processing

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file processing

Reply to Message Icon

Name: lw1990
Date: June 26, 2009 at 08:46:16 Pacific
OS: Windows server 2003
Subcategory: Software Problems
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: June 26, 2009 at 09:36:35 Pacific
Reply:

Is the batch a secret?


=====================================
If at first you don't succeed, you're about average.

M2


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Batch file processing

writing batch files www.computing.net/answers/dos/writing-batch-files/1545.html

Batch File Q About Process Priority www.computing.net/answers/dos/batch-file-q-about-process-priority/12651.html

Batch file to kill processes www.computing.net/answers/dos/batch-file-to-kill-processes/13104.html