Recent Posts

Pages: 1 ... 4 5 [6] 7 8 ... 10
51
SQLite / Re: SQLite3 SB ext. module
« Last post by Script_test on June 29, 2017, 03:37:12 AM »
 :)
Thank you!!
52
SQLite / Re: SQLite3 SB ext. module
« Last post by AlyssonR on June 29, 2017, 03:07:49 AM »
Try this:

Code: [Select]
directo="c:\\scriptbasic\\database\\"
fileno="registro_fechas.db"
hdb=sqlite::open(directo & fileno)

or even

Code: [Select]
directo="c:\\scriptbasic\\database\\"
fileno="registro_fechas.db"
ofile = directo & fileno
hdb=sqlite::open(ofile)

Sometimes, it pays to keep arguments free of literal strings.
53
SQLite / Re: SQLite3 SB ext. module
« Last post by Script_test on June 28, 2017, 07:34:01 AM »
Hello!
First of all, thank you for your work.
I have Strange random problem running under windows 7 and windows 10.
When the file is created, it adds additional ascii characters to the file name.
thanks for your help.

update
This happens when you use ...

Code: [Select]
directo="c:\\scriptbasic\\database\\"
hdb=sqlite::open(directo & "registro_fechas.db")
54
General Discussions / Re: help: upload files to FTP using cURL
« Last post by Support on June 08, 2017, 07:24:36 PM »
Would SYSTEM be a better choice?
55
General Discussions / The Script BASIC JS extension module
« Last post by Script_test on June 08, 2017, 04:21:45 AM »
I was looking for the module JS; Was removed from the web?
56
General Discussions / Re: help: upload files to FTP using cURL
« Last post by Script_test on June 08, 2017, 04:13:39 AM »
It is this time solving generating a file and run by external program ("EXECUTE")

print #39,"curl -p " & urlftp & imagftp_path & " --user ....... etc.

ty
57
General Discussions / Re: help: upload files to FTP using cURL
« Last post by Support on May 27, 2017, 11:15:34 AM »
Quote
ScriptBasic v2.0

That version was before my time and over 15 years old. Please install the current 2.2 Inno Windows install of Script BASIC.

Did you catch my point about using unescaped Windows path names? Try using / instead.

58
General Discussions / Re: help: upload files to FTP using cURL
« Last post by Script_test on May 26, 2017, 07:52:38 AM »
this is my sb version:
Code: [Select]
c:\scriptbasic\bin>scriba -v
ScriptBasic v2.0
Variation >>STANDARD<< build 0
Magic value 859011890
Node size is 16
Extension interface version is 11
Compilation: Aug 22 2003 14:01:34
Executable: c:\scriptbasic\bin\scriba.exe

curl::option CURL,"UPLOAD"
This piece of code according to the manual, does not need additional parameters, and in this case generates the error.
Code: [Select]
(0): error 0x00081103:Extension specific error: %s



But ... any help
Code: [Select]
* Uploading to a URL without a file name!
* Uploaded unaligned file size (0 out of 179712 bytes)


some help about uploading a file using cUrl.
59
General Discussions / Re: help: upload files to FTP using cURL
« Last post by Support on May 23, 2017, 04:02:33 PM »
Code: Script BASIC
  1.  
  2. Import "c:\scriptbasic\include\curl.bas"
  3.  

I'm supprised that Script BASIC is even loading the curl.bas file with the non-escaped \ you're using.

Have you tried using Script BASIC's CHDIR to define your working directory?
60
General Discussions / help: upload files to FTP using cURL
« Last post by Script_test on May 22, 2017, 07:04:00 AM »
Hello,
I have a problem
I need to upload a file by ftp.
You could help me with this script, I can not find a way to change directory and upload the file.

thank you in advance


Code: [Select]

Import "c:\scriptbasic\include\curl.bas"


archivo = "C:\\Windows\\notepad.exe"
USER = "YOURftpuser"
password = "YOURftppassword"
ftpurl ="ftp://YOURSERVER.com/"
rem

CURL = curl::init()
curl::option CURL,"VERBOSE"
curl::option CURL,"URL",ftpurl
curl::option CURL,"USERPWD",USER & ":" & password
rem
rem server dir
rem logs
rem html
rem errors
rem cgi-bin


curl::option Curl,"QUOTE","cd /html"

curl::option CURL,"INFILE",archivo
curl::option CURL,"UPLOAD"


 
curl::perform CURL


curl::finish CURL

rem

when run

Code: [Select]
* About to connect() to myftpserver port 21 (#0)
*   Trying 000.00.000.220... * connected
* Connected to myftpserver (000.00.000.220) port 21 (#0)
< 220 Welcome to FTP service.
> USER myusername
< 331 Please specify the password.
> PASS mypass
< 230 Login successful.
> PWD
< 257 "/"
* Uploading to a URL without a file name!
* Uploaded unaligned file size (0 out of 179712 bytes)
* Closing connection #0
(0): error 0x00081103:Extension specific error: %s
Pages: 1 ... 4 5 [6] 7 8 ... 10