| View previous topic :: View next topic |
| Author |
Message |
Tommy Guest
|
Posted: Tue Feb 07, 2006 5:04 pm Post subject: [win32] connot load config.xml |
|
|
I am useing VB6 to write a program to control my radio station.
The problem I am having is starting IceCast.
I use the shell command like this;
| Code: |
IcastPid = Shell("E:\Program Files\Icecast2 Win32\Icecast2.exe")
|
But I get an error that says cannot load config.xml
If I start IceCast from my desktop or from the IceCast folder it runs fine.
Please help.
Tommy |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Feb 07, 2006 5:13 pm Post subject: |
|
|
The command line format is "icecast -c icecast.xml", try adding the -c
karl. |
|
| Back to top |
|
 |
Tommy Guest
|
Posted: Wed Feb 08, 2006 8:48 pm Post subject: Did Not Work |
|
|
I tried that and every possible combination of that and still the same error;
| Code: |
IcastPid = Shell("E:\Program Files\Icecast2 Win32\icecast2.exe -c icecast.xml")
IcastPid = Shell("E:\Program Files\Icecast2 Win32\icecast2.exe icecast -c icecast.xml")
IcastPid = Shell("E:\Program Files\Icecast2 Win32\icecast2.exe /-c icecast.xml")
IcastPid = Shell("E:\Program Files\Icecast2 Win32\icecast2.exe /icecast -c icecast.xml")
|
Please help more,
Thanks,
Tommy
P.S. Thanks for the replay |
|
| Back to top |
|
 |
Tommy Guest
|
Posted: Wed Feb 08, 2006 8:55 pm Post subject: I know |
|
|
I know that;
| Code: |
| icecast -c icecast.xml |
Is the code for starting IceCast2 in the linux version,
But I am useing the Win32 windowed (the one with the graghical window), you know the one with the tabs and buttons on it.
Sorry for the stupid explantion of the one I am useing but I cannot think of what it's call right off the top of my head, I think it's the GUI one.
Thanks,
Tommy |
|
| Back to top |
|
 |
Tommy Guest
|
Posted: Wed Feb 08, 2006 9:22 pm Post subject: oops |
|
|
Hay thanks for the help but I got it to work, here is what I had to do;
| Code: |
IcastPid = Shell("E:\Program Files\Icecast2 Win32\icecast2.exe E:\Program Files\Icecast2 Win32\icecast.xml")
|
When I did that then I got an error about could not find the log path and errorlog path so I had to change the config file to this;
| Code: |
<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>E:\Program Files\Icecast2 Win32\logs</logdir>
<webroot>E:\Program Files\Icecast2 Win32\web</webroot>
<adminroot>E:\Program Files\Icecast2 Win32\admin</adminroot>
<!-- <pidfile>E:\Program Files\Icecast2 Win32\icecast.pid</pidfile> -->
|
Then it all worked just fine.
Thanks for the help,
Tommy |
|
| Back to top |
|
 |
|