I have a number of scripts (Ruby as it happens) I run from VIM, by setting up the startup file to contain (for instance):
amenu Ruby.script1 :%!ruby C:\ruby_scripts\script1.rb<cr><cr>
amenu Ruby.script2 :%!ruby C:\ruby_scripts\script2.rb<cr><cr>
...
What I would like to do, is to have VIM automatically check the C:\ruby_scripts
directory and assign menu items automatically - can this be done?