NO

Author Topic: Starting POIDE with /XML filename.xml  (Read 3450 times)

drhoule

  • Guest
Starting POIDE with /XML filename.xml
« 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.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: Starting POIDE with /XML filename.xml
« Reply #1 on: November 05, 2010, 01:13:34 PM »
Why not just in PellesC folder
Code: [Select]
start bin\poide.exe /xml PellesC.xml
May the source be with you

drhoule

  • Guest
Re: Starting POIDE with /XML filename.xml
« Reply #2 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.

drhoule

  • Guest
Re: Starting POIDE with /XML filename.xml
« Reply #3 on: November 05, 2010, 01:55:18 PM »
POIDE.EXE  -xml c:\pellesc\bin\pellesc.XML

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

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: Starting POIDE with /XML filename.xml
« Reply #4 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]


May the source be with you

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Starting POIDE with /XML filename.xml
« Reply #5 on: November 05, 2010, 09:52:54 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.
best regards
 Alex ;)