[TRNSYS-users] Automatization in running .dck-files

Bert Dendooven bert.dendooven at student.kuleuven.be
Wed Mar 12 06:49:16 PDT 2008


Dear users, Dear Richard,

I have found the solution to this little mistery :)

As stated before, the following won't work properly:

start /wait "C:\Program Files\Trnsys16\Exe\TRNExe.exe" "%cd%\AFW 1 2 
IN-UIT bu.dck" /n

but

start /wait C:\"Program Files\Trnsys16\Exe\TRNExe.exe" "%cd%\AFW 1 2 
IN-UIT bu.dck" /n

does...

I added the "" because .bat files do not accept spaces in the path but 
apparently the start command was having problems with it,

bert



Richard Heimrath schreef:
> Dear Bert,
>
> in my case the block
>
>        md E:\Head_Office_Kioto\durch2\results\HOKioto_05a
>      start /low /wait C:\trnsys16_1\Exe\trnexe.exe HO_KIOTOav_5.dck /N
>      move energy_TOT.BAL   
> E:\Head_Office_Kioto\durch2\results\HOKioto_05a
>    move energy_zone.BAL  E:\Head_Office_Kioto\durch2\results\HOKioto_05a
>    move load.dat         E:\Head_Office_Kioto\durch2\results\HOKioto_05a
>    move mon.dat          E:\Head_Office_Kioto\durch2\results\HOKioto_05a
>    move SUMMARY.BAL      E:\Head_Office_Kioto\durch2\results\HOKioto_05a
>    move temp.dat         E:\Head_Office_Kioto\durch2\results\HOKioto_05a
>
> is working without any problems...
>
> with sunny regards, Richard
>
> Bert Dendooven schrieb:
>> dear Trnsys Users,
>>
>> I'm using TRNSYS 16 and I ran into a problem while creating a 
>> batchfile. When I run:
>>
>> start /wait "C:\Program Files\Trnsys16\Exe\TRNExe.exe" "%cd%\AFW 1 2 
>> IN-UIT bu.dck" /n
>>
>> the dialogbox still appears.
>>
>> When running:
>>
>> "C:\Program Files\Trnsys16\Exe\TRNExe.exe" "%cd%\AFW 1 2 IN-UIT 
>> bu.dck" /n
>>
>> it does not...
>>
>> the problem is that I would like tot use the /wait command so not 
>> every file starts running at ones.
>>
>> anyone?
>>
>> Bert Dendooven
>>
>> PS: hope I'm not bugging to many people :)
>> PPS: also tried: start /wait "C:\Program 
>> Files\Trnsys16\Exe\TRNExe.exe /n" "%cd%\AFW 1 2 IN-UIT bu.dck"
>> _______________________________________________
>> TRNSYS-users mailing list
>> TRNSYS-users at engr.wisc.edu
>> https://www.cae.wisc.edu/mailman/listinfo/trnsys-users
>>   
>




More information about the TRNSYS-users mailing list