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 / "cd command

Author
Message
RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 18th May 2003 19:23
well im making n ftp program that works pretty much like DOS
i didnt have problems to DIR and see what folders are in a ftp adress but i dont know how to get in to folders , how can i type "cd folder" and it will get to the folder ?
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 18th May 2003 23:36
When the program gets the name of the folder and puts it in the variable folder$, use

cd folder$

and when you want to go back a folder, use cd ".."

Whatever I did I didn't do it!
RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 18th May 2003 23:56

its not working , what i need to do is what comes after the "cd " will be the folder name and then it will get into it

RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 18th May 2003 23:57
my question is how to get the folder name not how to get in the folder

RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 20th May 2003 03:50
anyone ?

Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 20th May 2003 05:02
input folder$
ftp set dir folder$

?

Although I'm not sure anyone totally understands what your question actually is!

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 20th May 2003 05:06 Edited at: 20th May 2003 05:08
He means he wants to extract the directory from the string, if the first 2 letters are "cd".

This should work



"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 20th May 2003 13:42
thanks andrew 11

RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 20th May 2003 15:06
well i cant see any reason why opend another topic ! , but now how can i do that if z$ = "cd.." then it will get out from the folder , get back ?

Login to post a reply

Server time is: 2024-11-24 15:08:11
Your offset time is: 2024-11-24 15:08:11