Ryan Mckenzie wrote:
> Hello everyone,
>
> I'm using InstantRails 2.0 on a Windows XP 32 bit system.
>
> I'm developing a Rails application where I would like to execute a .bat
> file
>
> I've had a look around and this piece of code is suppose to do the trick
> but it does not seem to work.
>
> system('path/to/file.bat')
>
Should not need anything special. How do you know it doesn't work?
Also, are you using forward slashes in the path? That may not work.
Are there spaces in the path to file.bat? That may not work.
Cheers,
Mohit.
1/7/2009 | 12:41 AM.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---