public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* dos command
@ 2008-10-05 13:04 idan72
  2008-10-05 18:36 ` Frank Cox
  0 siblings, 1 reply; 8+ messages in thread
From: idan72 @ 2008-10-05 13:04 UTC (permalink / raw)
  To: linux-msdos


Hi,

How can I send in one line two different dos command ?

Thanks
-- 
View this message in context: http://www.nabble.com/dos-command-tp19824395p19824395.html
Sent from the linux-msdos mailing list archive at Nabble.com.


^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: dos command
@ 2008-10-06 10:44 Manfred Scherer
       [not found] ` <48EA9EA4.3030603@pobox.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Manfred Scherer @ 2008-10-06 10:44 UTC (permalink / raw)
  To: linux-msdos


there is no way to run more than one command in the dos commandline,
except command piping. 

A possibility is to turn over the value as a commandline argument:

The first line in your a.bat should bee:

set val=%1

Call the batchfile a.bat with your value (i.e. 7) in one command line:

call a.bat 7


If you cannot modify your a.bat before, then you can generate a version of it:

echo set val=%%1 > b.bat
cat a.bat >> b.bat 
call b.bat 7




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-10-07  7:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-05 13:04 dos command idan72
2008-10-05 18:36 ` Frank Cox
2008-10-05 19:24   ` Idan Shai (ishai)
2008-10-05 19:30     ` Frank Cox
2008-10-05 19:46       ` Idan Shai (ishai)
  -- strict thread matches above, loose matches on Subject: below --
2008-10-06 10:44 Manfred Scherer
     [not found] ` <48EA9EA4.3030603@pobox.com>
2008-10-06 23:49   ` Manfred Scherer
2008-10-07  7:47     ` Frank Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox