Reply to Re: SQLAgent 2005 SP1 failed to run .bat file.

Your name:

Reply:


Posted by Roy Harvey on 03/27/07 11:51

On 26 Mar 2007 18:11:09 -0700, "Amber" <guxiaobo1982@gmail.com> wrote:

> @command=N'E:
>cd E:\firefly
>copy a.txt b.txt',

If these were in a bat file and you executed the bat file that should
work.

However, you are trying to execute all three commands as one, and I
believe that is the problem. You can only execute one command.

In some versions of Windows there is an option for stacking multiple
commands on a single line. I have not used it, but you might explore
using &, or &&. If that works @command would look like

@command=N'E:&cd E:\firefly&copy a.txt b.txt',

Roy Harvey
Beacon Falls, CT

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация