Search found 19 matches

by spacewalker
Wed Sep 17, 2014 7:59 am
Forum: Coding Questions
Topic: Receive Dropbox file
Replies: 16
Views: 6921

Re: Receive Dropbox file

Since I had a bit time:
HTTPGet2Mem() now with included redirect:

Hello,

this is an old thread but it covers exactly what I need (download a file from Dropbox)
The download link in the sourcode works in my browser, I can download the file.

But the code (HTTPGet2Mem() with redirect) doesn't work ...
by spacewalker
Thu Sep 04, 2014 2:06 pm
Forum: Coding Questions
Topic: SSH with plink
Replies: 4
Views: 2358

Re: SSH with plink

OK, thank you for the information... so I'll wait for 5.31
by spacewalker
Wed Sep 03, 2014 3:51 pm
Forum: Coding Questions
Topic: SSH with plink
Replies: 4
Views: 2358

SSH with plink

Hello,

I need to login to a device (CISCO Switch) using SSH and retrieve the configuration.

I've tried to use plink for this based on the information I've found here :
http://www.purebasic.fr/english/viewtopic.php?f=13&t=53356

So I need to do 4 steps:
1.Connect to the device with username and ...
by spacewalker
Sun Aug 31, 2014 1:09 pm
Forum: Coding Questions
Topic: FTP - delete all files in a FTP Server directory
Replies: 2
Views: 1396

FTP - delete all files in a FTP Server directory

Hello,

I'm looking for some code that deletes all files in a directory on a FTP server.

I already can connect to a FTP server and change to a directory there.

But now I need to delete all files in the current FTP directory.

With DeleteFTPFile() I can delete a single file.. so I guess that I must ...
by spacewalker
Sun Aug 24, 2014 12:44 pm
Forum: Coding Questions
Topic: WAVE file with cart chunks
Replies: 2
Views: 2159

Re: WAVE file with cart chunks

Thank you Bernd- this works great!
by spacewalker
Fri Aug 22, 2014 9:13 am
Forum: Coding Questions
Topic: WAVE file with cart chunks
Replies: 2
Views: 2159

WAVE file with cart chunks

Hello,

I need a way to read some information form WAVE files that have "cart chunks".

I'm not an expert with WAVE files but it seems that "cart chunks" are kind of an extension
I have found some code in the forum that deals with WAVE files but none of them could read the information I need.

All ...
by spacewalker
Mon Mar 31, 2014 3:59 pm
Forum: Coding Questions
Topic: download files from a webserver using downloadlinks
Replies: 3
Views: 1204

Re: download files from a webserver using downloadlinks

I have never tried with a file of that size but, are you saying something like this doesn't work for you?

<a href="/downloads/file.zip"><img border="0" src="img/downloadbutton.png"></a>
well, I guess it would work for me - if I had a purebasic webserver that would process this code (with file ...
by spacewalker
Thu Mar 27, 2014 5:07 pm
Forum: Coding Questions
Topic: download files from a webserver using downloadlinks
Replies: 3
Views: 1204

download files from a webserver using downloadlinks

Hello,

I need an idea about how to create an application that would allow a client to download files using a webbrowser.

So the client sends a downloadlink like this to my "webserver" :
"http://myPBWebServer/file.zip"

The files would be big, 1-4Gb

I think that I need a PB webserver that can send ...
by spacewalker
Fri Jan 31, 2014 1:32 pm
Forum: General Discussion
Topic: batch for compile .dll : Constant not found
Replies: 0
Views: 1072

batch for compile .dll : Constant not found

Hi,

I would like to have a batch that compiles some .pb sourcefiles to .dll

I have tried the following command in a batch:

pbcompiler "E:\PB\combine.pb" /EXE "%targetdir%\combine.dll" /DLL /UNICODE

I get :
Error: Line 245 - Constant not found: #PB_Editor_BuildCount.


I do use the ...
by spacewalker
Sun Dec 29, 2013 4:43 pm
Forum: Coding Questions
Topic: Sorting numbers and text together
Replies: 5
Views: 2158

Re: Sorting numbers and text together

wilbert wrote:This should be a bit faster
very nice... according to my tests it's 10x faster :-)

thank you
by spacewalker
Sun Dec 29, 2013 3:24 pm
Forum: Coding Questions
Topic: Sorting numbers and text together
Replies: 5
Views: 2158

Re: Sorting numbers and text together

Hi,

the easiest way is to create a corresponding structure, and the use SortStructuredArray :


thank you,that works

@PB:
Thank you fo your answer.
As you said, your code is OK for small arrays..but slow for large arrays.

Here is my procedure based on Little John's code. It sorts 1 million ...
by spacewalker
Sun Dec 29, 2013 11:09 am
Forum: Coding Questions
Topic: Sorting numbers and text together
Replies: 5
Views: 2158

Sorting numbers and text together

Hello,

I need to sort a text that contains leading numbers.
One problem is that the "numbers" may or may not have padded, leading zeros or an empty string..

So for example I have an array with strings like this

a$(0) = "100,test1.txt"
a$(1) = "10 test2.txt"
a$(2) = "200test3.txt"
a$(3) = "20 ...
by spacewalker
Tue Dec 24, 2013 12:52 pm
Forum: The PureBasic Editor
Topic: Tools: How to copy an executable after "Create executable"
Replies: 2
Views: 2826

Tools: How to copy an executable after "Create executable"

Hello,

I try to add a tool that copies my .DLL to another PC after I execute "Create Executable"
(Basically the whole "tool" is a simple copy command)

I use "Tools" - "Configure tools" with the following settings:

command line :
copy "C:\test\myDLL.dll" "\\Testserver2\c$\test" /Y

Event to ...
by spacewalker
Thu Jun 06, 2013 4:52 pm
Forum: Coding Questions
Topic: passing big string to procedures
Replies: 6
Views: 1123

Re: passing big string to procedures

Thank you both for the answers...using a global variable or a structure are good ideas.

But as you can see maybe it's a false problem. If you only access the string to read it no copy is performed.
But as soon you start to use string functions on it, on concatenate with another, etc. new strings ...