Code: Select all
run <mygoogledrive>:\testsaveCode: Select all
run <mygoogledrive>:\testsave.txtModerators: EViews Gareth, EViews Moderator
Code: Select all
run <mygoogledrive>:\testsaveCode: Select all
run <mygoogledrive>:\testsave.txtCode: Select all
%fileid= "1-T-3yjhYNJbwk3-8z_zf1afdGVo63iYLBM7TNeZybXY"
call googledocs(%fileid) 'executes the Google Doc as EViews program
'-------------------------------------------------------------------------------
subroutine googledocs(string %fileid)
%filename = "googledocs_may_be_deleted.txt" 'will be saved in @runpath folder
%dir=@runpath
'downloading google doc as txt file
%code1="wget https://docs.google.com/document/d/"
%code2="/export?format=txt -OutFile "
%code=%code1+%fileid+%code2+%dir+%filename
shell powershell -command {%code} 'downloading google doc file
'create txt file to execute program
%t=@getnextname("_t") 'txt file
text {%t} 'create text file
{%t}.append(file) {%dir}\{%filename}
{%t}.save {%dir}\googledocrunprogram.prg 'save text file as program
exec {%dir}\googledocrunprogram 'execute new program file
close {%t}
endsubReturn to “Suggestions and Requests”
Users browsing this forum: No registered users and 2 guests