# Control over rodl2code output file name

**URL:** https://talk.remobjects.com/t/control-over-rodl2code-output-file-name/21739
**Category:** Remoting SDK
**Tags:** delphi
**Created:** [April 8, 2020, 2:29pm UTC](https://talk.remobjects.com/t/control-over-rodl2code-output-file-name/21739 "2020-04-08T14:29:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fvancrae](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/f/ad7895/32.png) [@fvancrae](https://talk.remobjects.com/u/fvancrae)
#### Post date: [April 8, 2020, 2:29pm UTC](https://talk.remobjects.com/t/control-over-rodl2code-output-file-name/21739/1 "2020-04-08T14:29:09Z")

</div>

We have a batch file to create delphi sources from a RODL file (.NET server)

It is not clear how rodl2code shoud be used correctly

To create --type:intf it seems we just use the RODLFILENAME as is (in our case OffNetServer.RODL)  
which will create OffNetServer\_Intf.pas with as first line ‘unit OffNetServer\_Intf’  
=\> this is OK

When creating --type:serveraccess then files OffNetServer\_ServerAccess.pas/dfm are created but first line is ‘unit OffNetServerLibrary\_ServerAccess’  
=\> this is not OK

The --out parameter does not seem to work

When I change the RODL filename the problem is reverse.  
It is simple to solve this manually but I wanted to report this or learn what the correct way is to work.

“%RemObjectsTop%\RemObjects SDK (Common)\Bin”\rodl2code %RODLFILENAME% --type:intf --platform:delphi --language:delphi --outpath:. --out:OffNetServer\_Intf.pas  
if %ERRORLEVEL% NEQ 0 goto fout

“%RemObjectsTop%\RemObjects SDK (Common)\Bin”\rodl2code %RODLFILENAME% --type:serveraccess --platform:delphi --language:delphi --outpath:. --out:OffNetServerLibrary\_ServerAccess.pas

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [April 8, 2020, 2:39pm UTC](https://talk.remobjects.com/t/control-over-rodl2code-output-file-name/21739/2 "2020-04-08T14:39:30Z")

</div>

Hi,

> [@fvancrae](#):
>
> The --out parameter does not seem to work

rodl2code hasn’t `--out` parameter

looks like you mean `--outfilename` parameter:

```auto
  --outfilename:<name> (optional base filename for generated files, w/o extension)

```

---

<div class="post-metadata">

### Author: ![fvancrae](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/f/ad7895/32.png) [@fvancrae](https://talk.remobjects.com/u/fvancrae)
#### Post date: [April 8, 2020, 3:58pm UTC](https://talk.remobjects.com/t/control-over-rodl2code-output-file-name/21739/3 "2020-04-08T15:58:36Z")

</div>

OK thanks,

With --outfilename I can do what I want.  
Without that parameter the tool potentially still generates source files which do not compile

Regards,  
Frederic
