| View previous topic :: View next topic |
| Author |
Message |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Thu Jan 22, 2004 11:50 am Post subject: Anyone know of a dos program for transfers? |
|
|
is there a dos program or other command line based program that can send and recive files over the internet?
I need this feature in my program and as some of you know, i just cant get it working. |
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Thu Jan 22, 2004 11:55 am Post subject: |
|
|
Why don't you use the vdsinet dll? It's free...
Vic _________________ phpBB Development Team |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Thu Jan 22, 2004 12:49 pm Post subject: |
|
|
I have been trying but i cant seem to get it running.
I have already tried many dlls but i cant seem to write the code i need.
Thats why im now out looking for something thats pre done.
If nothing comes up i will have to keep try i guess... |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Jan 22, 2004 2:38 pm Post subject: |
|
|
hi dw,
i suggest that you post the relevant part of your program that transfers the files and see if someone at the forum who is familiar with the dll you are using can help you
serge _________________
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Thu Jan 22, 2004 3:34 pm Post subject: |
|
|
| The VDSIPP now support TFTP and TFTP-SERVER which allows you to easily transfer files using the trivial file transport protocol (based on udp protocol). Take a look at the examples that come with the VDSIPP to see it only takes a few lines of code to send a file. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jan 22, 2004 6:11 pm Post subject: |
|
|
I know at least on Windows 2000 & Windows XP there's "FTP.EXE",
which is an FTP client for DOS.
What kind of transfers are you looking for? HTTP and FTP can be done
in VDS I think now with VDS 5  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Thu Jan 22, 2004 6:47 pm Post subject: |
|
|
| I think he wants to transfer files between users, similar to how msn, aim, icq and other IM clients work. |
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Thu Jan 22, 2004 11:49 pm Post subject: |
|
|
I have played with the fserver/client script on the forum already, couldnt work it out or get it to work though.
Ok heres my code see if anyone can make sence of it...
SERVER/CLIENT
| Code: |
:Global
%%VERSION = 0.1
external @path(%0)vdsipp.dll
option fieldsep,¬
:STATE_Switch
if @equal(%1,client)
%%STATE = Client
internet tcp,create,1
else
%%STATE = Server
INTERNET TCP-SERVER,CREATE,1
INTERNET TCP-SERVER,ACTIVATE,1,3111
end
:Main
Title Message!
DIALOG CREATE,Xfer %%STATE,-1,0,356,191
DIALOG ADD,STYLE,STYLE1,Verdana,8,,WHITE,004080
DIALOG ADD,LIST,LIST1,6,6,342,144,,STYLE1
DIALOG ADD,PROGRESS,PROGRESS1,156,6,342,24,0
DIALOG SHOW
LIST ADD,LIST1,Core Version %%VERSION
IF @EQUAL(%%STATE,CLIENT)
internet tcp,connect,1,localhost,3111
END
:Evloop
wait event
goto @event()
:TCP1ONCONNECT
list add,list1,Connected.
%%FILE = @FILEDLG(*.*)
BINFILE OPEN,1,%%FILE,READ
%%BYTES = @BINFILE(SIZE,1)
%%BINPOS = 0
INTERNET TCP,SEND,1,_FILESTART¬%%BYTES
repeat
binfile seek,1,%%BINPOS
INTERNET TCP,SEND,1,@BINFILE(READ,1,BINARY,200)
%%binpos = @fadd(%%binpos,200)
list add,list1,Pointer "@" %%BINPOS
until @binfile(eof,1)
rem :CLIENT_LOOPER
rem BINFILE SEEK,1,%%BINPOS
rem INTERNET TCP,SEND,1,@BINFILE(READ,1,BINARY,200)
rem IF @NOT(@BINFILE(EOF,1))
rem %%BINPOS = @FADD(%%BINPOS,200)
rem list add,list1,Pointer "@" %%BINPOS
rem GOTO CLIENT_LOOPER
rem ELSE
INTERNET TCP,SEND,1,_FILEEND
internet tcp,disconnect,1
goto close
rem END
goto evloop
:TCP1ONDISCONNECT
list add,list1,Disconnected.
INTERNET TCP,DESTROY,1
GOTO CLOSE
goto evloop
:TCP1ONMESSAGE
goto evloop
:TCP1ONSENDDONE
goto evloop
:TCP-SERVER1ONCONNECT
LIST ADD,LIST1,Connection Detected.
%%FIRSTRUN = 0
GOTO EVLOOP
:TCP-SERVER1ONDISCONNECT
LIST ADD,LIST1,Disconnected.
INTERNET TCP-SERVER,DESTROY,1
GOTO CLOSE
GOTO EVLOOP
:TCP-SERVER1ONMESSAGE
%%DATA = @INTERNET(TCP-SERVER,MESSAGE,1)
PARSE "%A;%B",%%DATA
IF @EQUAL(%A,_FILESTART)
LIST ADD,LIST1,Start Of File.
%%BYTES = @DIV(%B,100)
%%SAVETO = c:\test2.exe
BINFILE OPEN,1,%%SAVETO,CREATE
GOTO EVLOOP
END
IF @EQUAL(%A,_FILEEND)
list add,list1,End Of File.
BINFILE CLOSE
internet tcp,disconnect,1
goto close
GOTO EVLOOP
END
IF @EQUAL(%%FIRSTRUN,0)
list add,list1,First Run.
%%BINPOS = 0
%%FIRSTRUN = 1
goto evloop
END
list add,list1,Getting Data.
BINFILE SEEK,1,%%BINPOS
BINFILE WRITE,1,BINARY,%%DATA,200
%%BINPOS = @fadd(%%BINPOS,200)
DIALOG SET,PROGRESS1,%%BYTES
GOTO EVLOOP
:Close
internet tcp,destroy,1
internet tcp-server,destroy,1
exit
|
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Fri Jan 23, 2004 2:45 am Post subject: |
|
|
DW if you are already using vdsipp why not just use the TFTP and TFTP-SERVER protocols? You'll be alot happier once you see it's much easier to use then the method you are attempting.
Make sure to download the new version at vdispp as the current version is the one with the TFTP support. |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Fri Jan 23, 2004 11:51 am Post subject: |
|
|
OK, PGWARE i will take a look at that feature.
Just one thing though, what are the limits of the unregistered version of vdsipp? |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Fri Jan 23, 2004 4:10 pm Post subject: |
|
|
Can someone please explain the problem with my current code I posted before?
Thank you |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Fri Jan 23, 2004 5:00 pm Post subject: |
|
|
| You can't distributed programs using the unregistered version of vdsipp, in fact it will display a popup warning in demo mode as well. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|