Pelles C forum

C language => Beginner questions => Topic started by: drhoule on November 05, 2010, 12:36:52 PM

Title: Starting POIDE with /XML filename.xml
Post by: drhoule on November 05, 2010, 12:36:52 PM
I have a batch file with the command lines

set path=%~dp0bin;%PATH%
"%~dp0bin\POIDE.EXE"  /XML "%~dp0Pellesc.Xml"

I am trying to run the POIDE 6.00.4 (32 bit) with the /XML switch from a USB stick.

The error displayed reads
  Error reading from "Pellesc.xml"
  The filename, directory name, or volume label syntax is incorrect.

I tried with new and old installs still no go.

The XML file contains the data below and is UTF-8 encoded.
===============================
<?xml version="1.0" encoding="UTF-8"?>
<settings version="1.0">
</settings>
===============================

Any help would be nice.
Title: Re: Starting POIDE with /XML filename.xml
Post by: TimoVJL on November 05, 2010, 01:13:34 PM
Why not just in PellesC folderstart bin\poide.exe /xml PellesC.xml
Title: Re: Starting POIDE with /XML filename.xml
Post by: drhoule on November 05, 2010, 01:48:45 PM

a) start POIDE.EXE  /XML Pellesc.Xml
    Then the error reads cannot find the XML file.

b) start POIDE.EXE  /XML c:\pellesc\bin\Pellesc.Xml
    Then the error reads cannot find the XML file.
Title: Re: Starting POIDE with /XML filename.xml
Post by: drhoule on November 05, 2010, 01:55:18 PM
POIDE.EXE  -xml c:\pellesc\bin\pellesc.XML

This worked. The switch character is '-' not /.
Title: Re: Starting POIDE with /XML filename.xml
Post by: TimoVJL on November 05, 2010, 02:33:49 PM
From help:
Quote
Command line options (POIDE)

POIDE has the following general syntax:

POIDE [ { filename | option } ... ]

The filename argument specifies the name of any kind of file. Wildcards are not allowed.

An option starts with the / (or -) character, must be given exactly as specified (case sensitive), and can be one of the following:

...

/xml Stores all personal settings in the specified XML-file. [5.00]


Title: Re: Starting POIDE with /XML filename.xml
Post by: AlexN on November 05, 2010, 09:52:54 PM
Quote from: drhoule on November 05, 2010, 01:55:18 PM
POIDE.EXE  -xml c:\pellesc\bin\pellesc.XML

This worked. The switch character is '-' not /.


I use a command like this M:\Portable\PellesC.x\Bin\poide.exe /xml my.xml /x /n for Pelles C 5.01, 6.0 and 6.50rc2 and it works for all. I use Windows XP, Windows Vista and Windows 7.