vb6 - How do I build several .exe with 1 slight change in the code anytime? -


the thing need make 8000 files, same vb6 project, there 1 variable needs change it's number in each file. i'll spend lot of hours building files manually.

i've tried using .txt variable source, i've created project changes .txt number , compile original project "vb6.exe /make" in command line, while in original project made read .txt number. but... takes whole reading file code , when executed .exe tries find .txt instead of showing value of adquired while build. dah!

any chances of building .exe file vb6 textbox.text code?

for example:

textbox1.text = "msgbox ("hello")"

and build .exe textbox1.text, open msgbox saying "hello"


i've done editing .frm file (well, can't edit, can create new one), here code you'll find useful if you're trying batch compile codes programmatical changes similar:

'editing .frm file

open "c:\form1.frm" output #1 print #1, label1.caption & vbcrlf & label2.caption & text1.text & label3.caption 'here goes entire .frm code, changes in text1.text close #1 

'shell compiler

shell (vb6path & " /make " & projectpath & " /outdir " & exepath) 

'copy file needed name

filecopy ("c:\project1.exe"), ("c:\" & text1.text & ".exe") 'text1.text contains rotating name. 

'delete project1.exe

if dir("c:\project1.exe") <> "" kill "c:\project1.exe" end if 

you can make array or take variable data insert in .frm file file list, or whatever.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -