publish command line question

Posted By: Hani

publish command line question - 04/24/07 08:15

Quote:

Executes the Publish function. The script name.wdl must exist in the current folder




i've tried to run a batch file that do the publish,it never work with the script file name..

i've tried this
"c:\program files\GStudio6\WED.exe" -p testLevel2.wdl "E:\Games Projects\TestingA6SDK 2\Level\DelphiTestPro.exe"

and this

"c:\program files\GStudio6\WED.exe" -p "E:\Games Projects\TestingA6SDK 2\Level\testLevel2.wdl" "E:\Games Projects\TestingA6SDK 2\Level\DelphiTestPro.exe"

nothing happen, no error mesages, but the publish process nerver start.

if i removed the script file name, the publish work just fine, and a new DLL is generated.

so , am i doing something worg?
Posted By: jcl

Re: publish command line question - 04/24/07 09:15

I suppose your scripts are just not found because you're calling WED from a folder that is not the work folder of your project.

Make sure that you move to your work folder before calling the publish process.
Posted By: Hani

Re: publish command line question - 04/24/07 09:57

Quote:

you're calling WED from a folder that is not the work folder of your project




do you mean that the batch file is in another folder, not the project folder ?
casue the location of my batch file is
E:\Games Projects\TestingA6SDK 2\Level

the same folder where i created the leve
Posted By: jcl

Re: publish command line question - 04/24/07 10:51

No, it does not matter in which folder your batch file is located. It's the folder from which you call that batch file that matters.

F.i. if you call it from a shortcut, it's the "Execute In" folder.

If you call it from the command line prompt, it's the folder that's indicated before the prompt. You can change the folder with the CD command.

Alternatively, you can also call the CD command from your batch file.
Posted By: Hani

Re: publish command line question - 04/24/07 14:56

i did what ou told me, the same..
if i add the WDL file name , No publish ...
her is a screen shot of the CMD


Posted By: LazyDog

Re: publish command line question - 04/24/07 23:49

I ran into this issue a while back. There's an issue with publishing your .exe when a .wdl file is required also.

say your project is here:
E:\Games Projects\TestingA6SDK 2\Level

make sure that your .wdl file and your delphi .exe are in that directory and make sure your .bat file is there also.

here is my .bat file example to publish (change the path of wed to match yours and change the .wdl and .exe to match yours):
"c:\program files\GStudio6_6_50_6\WED" -p sample6.wdl sample6.exe

this works perfectly. I believe I gave up trying to have the .wdl and .exe files not be in the same directory.
Posted By: jcl

Re: publish command line question - 04/25/07 09:04

I can have the EXE in a different folder (in fact it's almost always in a different folder). But the WDL must indeed be in the current folder - otherwise all the additional files are not found.
Posted By: Hani

Re: publish command line question - 04/26/07 07:20

ok, i just want to know, the publish command line, launchs the hole publish process that we see in WED or just created and Updated acknex.DLL ??
Posted By: jcl

Re: publish command line question - 04/26/07 08:11

It runs the whole publish process.
© 2023 lite-C Forums