Page 1 of 1

Posted: Mon Feb 10, 2003 5:25 pm
by BackupUser
Restored from previous forum. Originally posted by willinyork.

Hi ho,

I've just tried re-compiling a program I wrote ages ago (it worked before) but now I'm getting a "a string is expected" error at a line which runs an external program. I've looked through the PB docs and saw that there is an optional "working directory" parameter for the command (I don't remember this being here before) but still cannot get my command to work (my directory and filename is stored as part of a$)

This is the code, as it was in the original version:

If RunProgram("c:\aiff2vag.exe",Chr(32)+a$,1)
EndIf

I'm probably missing something very simple here, but I have no idea what :)

Thanks!

Posted: Mon Feb 10, 2003 5:33 pm
by BackupUser
Restored from previous forum. Originally posted by fred.

RunProgram("c:\aiff2vag.exe",Chr(32)+a$,"", 1)

should work.


Fred - AlphaSND

Posted: Mon Feb 10, 2003 7:33 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> RunProgram("c:\aiff2vag.exe",Chr(32)+a$,"", 1)

You don't need a space for the parameter$ argument, either.

Posted: Tue Feb 11, 2003 12:37 am
by BackupUser
Restored from previous forum. Originally posted by willinyork.

Lovely :) Many thanks :)