All of lore.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; 9+ 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] 9+ messages in thread
* RE: dos command
@ 2008-10-06 10:44 Manfred Scherer
       [not found] ` <48EA9EA4.3030603@pobox.com>
  0 siblings, 1 reply; 9+ 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] 9+ messages in thread
* dos command
@ 2004-04-19  3:59 Tony Gogoi
  0 siblings, 0 replies; 9+ messages in thread
From: Tony Gogoi @ 2004-04-19  3:59 UTC (permalink / raw)
  To: linux-admin


sorry for asking this question here, but last option.

"dir /s /b" as pointed out to me earlier works fine.

However, it willl be more convenient for me to have filenames displayed
only as "MYDOCUME~1" instead of "MY DOCUMENTS" which has blanks. (So that
its easier to write scripts, string comparison as opposed to sentence
comparison etc).

How could I do this ?

The dir switch /X prints the short form which I want, but doesn't suppress
the long names as well. Any ideas ?

Thanks,


Tony Gogoi

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

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

Thread overview: 9+ 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
2004-04-19  3:59 Tony Gogoi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.