问题描述:

I am programming for google sketchup - I have a text file with .rb extension (my_file.rb) which is text file, I want through code in vb editor excel to do the following in the background:

  1. open notepad

  2. open my_file.rb

  3. save it (NOT SAVE AS , just save :JUST LIKE CTRL+S)

  4. close the file

note that I want that to happened in the background silently

(I want to save in EOL (end of line) - windows format - in order for Google sketchup to read my script properly)

Currently I have my code in vb write code to a text file, and it works fine only if I manually open the file I made and save it manually - then only then Google skethcup reads it.

thanks and I appreciate your help!

相关阅读:
Top