Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / DarkFTP help

Author
Message
RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 18th May 2003 00:24
well im building my first program and i have a little problem
here is my code
rem PROGRAM : DarkFTP
rem VERSION : v0.1
rem CREATED BY : Shlomi Nahari

` system
hide mouse
` background and text color
ink rgb(100,255,100),rgb(32,64,32) : cls
` label
text 593,0,"DarkFTP v0.1"
` ftp details
print " "
input " ADRESS > " ;a$
input " USERNAME > " ;u$
input " PASSWORD > " ;p$
` connect
url$= a$ : user$= u$ : password$= p$
print " CONNECTING TO : "; url$
ftp connect url$, user$, password$
if get ftp failure()=1
print " CONNECTION FAILED - PRESS (ESC) OR TYPE (exit) TO CLOSE THE PROGRAM "
endif
` commands
print " "
do
input " FTP >> " ; z$
rem command exit
if z$ = "exit" then end
rem command dir
if z$ = "dir"
print " "
ftp find first
while get ftp file type() >= 0
print get ftp file name$()
ftp find next
endwhile
print " "
endif
rem command commands
if z$ = "commands"
print " "
print " ALL COMMANDS MUST BE IN SMALL LETTERS "
print " COMMANDS LIST : "
print " dir - LIST OF FILES/FOLDERS "
print " commands - LIST OF ALL COMMANDS "
print " exit - CLOSE PROGRAM "
print " cd [folder] - GET IN TO SELECTED FOLDER "
print " cd.. - GET OUT TO THE LAST FOLDER "
print " download [filename] - DOWNLOAD FILE FROM FTP TO PC "
print " upload [filename] - UPLOAD FILE FROM PC TO FTP "
print " "
endif
rem command cd



`end main loop
loop



i want to put the "CD" command now but i dont know how to do it
i mean , what i need to do is : if z$ = "cd " then what comes after it will be = to dirname$
and then i can put the command set ftp dir dirname$
some one can tell me how to do that
RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 18th May 2003 00:24
sorry

i want to put the "CD" command now but i dont know how to do it
i mean , what i need to do is : if z$ = "cd " then what comes after it will be = to dirname$
and then i can put the command set ftp dir dirname$
some one can tell me how to do that

Login to post a reply

Server time is: 2024-11-24 14:46:02
Your offset time is: 2024-11-24 14:46:02