Re: Structure Array Files to DOS executed program



Finn wrote:
>
>
> Hi everyone,
>
> I am using an external application to convert binary data to ASCII
> format. The binary data that I am converting exists as a series of
> files located in a folder on my computer. The files in the folder
> are
> named as follows:
>
> 1) 286220050914119.rwd
>
> 2) 286220050915120.rwd
>
> 3) 286220050916121.rwd
>
> etc.
>
> I have been executing the program using the "dos" command in
> Matlab.
> My code is:
>
> dos ('C:\NRG\SymDR\SDR.exe /s C:\NRG\RawData\286220050914119.rwd');
>
> This code however will only convert the file specified in the
> command: 286220050914119.rwd.
>
> I wish to use a method of identifying the files, say a structure
> array, and to use this to pass the files to the external program
> for
> convertion to ASCII format. I wish to maintain the "dos" command if
> possible.
>
> The following is a code that I was thinking of using:
>
> file=dir('C:\NRG\RawData');
> dos('C:\NRG|SymDR\SDR.exe /s file(3).name');
it should be NRG/ not "|"
>
> I have run this and get the following error:
>
> 'C:\NRG' is not recognized as an internal or external command,
> operable program or batch file.
>
That should fix this ^^^^^^

> ans =
>
> 255
>
> I guess I can redefine my problem as: How do I pass the files
> contained in the structure array to a DOS executed program?
1. Can the DOS execuable program receive them? i.e. are they supposed
to open this file type? I would write a script to strip off the
header information into seperate files, although a fancy regex
scripts should sift through the site data. If you are writing
something from scratch, just open the rwd file read in what you need
and label as you go. I am about to do the very same thing with some
files here.

hope it helps.
Bran

>
> Any help will be greatly appreciated.
>
> Finn
.



Relevant Pages

  • Re: How to Format C in XP?
    ... I think you'll need to create a dos boot floppy or dos boot cd to do what ... then you can use the format command. ...
    (alt.os.windows-xp)
  • Re: Structure Array Files to DOS executed program
    ... > I am using an external application to convert binary data to ASCII ... > I have been executing the program using the "dos" command in Matlab. ... > convertion to ASCII format. ...
    (comp.soft-sys.matlab)
  • Re: Unable to execute some DOS Commands after XP Reinstall
    ... Yes - the icon is not there. ... the dos command prompt. ... the inability to recognize the format command - you were right. ... executed a path command in a batch file prior to trying to format a disk. ...
    (microsoft.public.windowsxp.general)
  • RE: Command Prompt Disk Formatting
    ... > the DOS Command FORMAT with the exception of a format size of 1.44. ... format a: /n:9 /t:80 does indeed start the formating of a 720KB disk ...
    (microsoft.public.windowsxp.general)
  • Re: Trying to learn c++, need help compiling
    ... you need to specify the current directory when typing a command ... put it on my windows computer and ran it. ... > dos window really quick and then it disapears without dislaying any text. ... To format a floppy, use "fdformat /dev/fd0" and then "mkfs.minix /dev/fd0". ...
    (alt.os.linux.suse)