Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Capturing output from command line


1 reply to this topic

prozacrefugee

prozacrefugee
  • Members
  • 38 posts

Posted 23 October 2002 - 20:00

I am trying to determine the domain of the machine running an install.  To do this I am using the ipconfig /all command routed to a text file, but when done from within Install Shield the file is not created, and the output is not routed anywhere.

nReturn=LaunchAppAndWait("ipconfig","/all > c:\\temp.txt",WAIT);
nReturn=FileGrep("c:\\temp.txt", "Primary Dns Suffix", svReturn, nvLine, RESTART);

This works fine from the command line, and the grep runs fine if the file is created from the command line.  Any ideas?

Thanks in advance!

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 23 October 2002 - 20:49

Never tried to do this in IS, but one idea is to put those commands in a batch file and call that batch instead.
user posted image