Skip to Content

ShellExecution codelet

1 reply [Last post]
avia
User offline. Last seen 24 weeks 4 days ago. Offline
Joined: 02/04/2010
Groups: None

Hi ALL!

I can't execute any .bat file with this codelet, only .exe.

I can't also pass any parameters to the .exe, even when manipulating with env, dir and command variables.

This codelet works by me only with programs without GUI. Result variable takes the output. This is good but not enough for real work.

Can anybody tell me how can i pass parameters to .bat files for example?

Thaтks.

 

UPD: Problem solved in next revision. Bug 2923422.

.bat files must be started by passing the following string to the command variable

cmd.exe /c start /d <"dir_in_which_is_bat"> <file.bat> <arguments_with_spaces>

michael
User offline. Last seen 1 day 8 hours ago. Offline
Joined: 09/29/2009
Groups: None
Re: ShellExecution codelet

The updated class can be downloaded from: https://fileshare.qut.edu.au/public/adamsmj/ShellExecution.class