0

So I have a very simple single file script:

puts "Enter the file name"
file = gets.chomp
puts "What do you want to replace it with?"
replace = gets.chomp

which then changes some files with the user-inputs. I packaged it up with Ocra, but I was hoping it would open up the command line when it was run and ask for the user inputs or something, or a pop-up window maybe. I need this to be very simple since my users won't know to go to the command line and run the .exe from there with arguments, so is there a way to to get a window to pop-up that takes in user input every time the .exe file is run? I've tried it in both .rb and .rbw formats.

4

1 回答 1

0

cmd(或者可能是 cmd.exe)应该可以在 Windows 上运行。它会输出到 cmd 命令,该命令应该启动一个 cmd 窗口。

于 2015-03-27T15:56:07.830 回答