Despair.nu - Ritualistic
FTP in MS_DOS
Yes! I don't know too many people who know how to upload with the FTP thing in MS_DOS, and I've never seen a tutorial for it on a graphics website, so now I'm writing one! I recently found out how to do this, but I'm pretty sure I have the jest of things.
First I'll explain what all of the commands for the ftp part mean, so maybe that will give you a better understanding of things.
! - Typing this will toggle you back and forth between the operating system screen and the FTP. From the operating screen, type exit to get back to the FTP screen.
? - Brings up the help screen.
abor - Abort transfer.
append - Append text to a local file.
ascii - Switches to ASCII transfer mode.
bell - Turns bell mode on/off.
binary - Switches to binary transfer mode.
bye - Exits from FTP.
cd - Changes directory.
cdup or cd .. - Changes to parents directory on remote system.
close - Exits from FTP.
cwd - Changes working directory on remote system.
dele - Deletes file on remote system.
delete - Deletes a file.
debug - Turns debugging on/off.
dir - Lists files.
dir -C = Lists the files in wide format.
dir -1 = Lists the files in bare format in alphabetic order
dir -r = Lists directory in reverse alphabetic order.
dir -R = Lists all files in current directory and sub directories.
dir -S = Lists files in bare format in alphabetic order.
disconnect - Exits from FTP.
get - Downloads a file from the server.
glob - Turns globbing on/off.
hash - Turns hash mark printing on/off.
help - Displays the Help screen.
lcd - Displays local directory or changes local directory is path is typed after lcd.
list - Send a list of file names in the current directory on the remote system on the data connection.
literal - Sends command line.
ls - Lists files.
mdelete - Delete multiple files.
mdir - List contents of multiple remote directories.
mget - Get multiple files.
mkd - Make directory.
mkdir - Make directory.
mls - Lists files of multiple directories.
mode - Specifies the transfer mode. Available parameters are usually S, B or C.
mput - Sent multiple files.
nlst - Send a full directory listing of the current directory on the remote system on the data connection.
open - Opens address.
pass - Supplies a user password.
port - Specify the port number.
prompt - Enables/disables prompt.
put - Send one file.
pwd - Print working directory.
quit - Exits from FTP.
quote - Send arbitrary FTP command.
recv - Recieve file.
retr - Get file from remote system.
remotehelp - Get file from remote server.
rename - Renames a file.
rmdir - Removes a directory.
send - Send single file.
status - Show status of currently enabled/disabled options.
trace - Toggles packet tracing.
type - Set file transfer type.
user - Send new user information.
verbose - Turns verboke on/off.
Intro: Everybody should have a Command Prompt. If you don't, your computer is weird >> Go to Run, and type in cmd, then a little black box should appear on your screen. It should say something like C:\Documents and Settings\Something. First of all, you'll need to change to the directory where all of your site files up. Unless you're just updating a few files, I suggest you change paths. If you're only updating 1 or 2, just get the files from the server. I'll explain that later. To change directories on your computer, type in cd whatever/directory/you/need. If you typed it correctly, your new path should be C:\Documents and Settings\whatever\directory\you\need. At least that's what mine is. Then, comes the FTP part.
First of all, you'll need to know your FTP URL. Mine is ftp.brighter-daze.net. If you're using Freewebs, it's ftp.freewebs.com, Angelfire is ftp.angelfire.com, and so on. So, type in ftp. Now your path should be ftp>. Type in open yourhost.com. After you do this, it will connect to your host and ask you to supply a username. Enter your username, then password when it asks for it. When you type in a password, it is
always hidden. So don't freak out when you can't see it! If you've done that correctly, you'll be connected. Congratulations!
Directories: From there, it's fairly easy to catch on. To see your current directory, type dir. That'll also display all the files and folders in that directory. To change directories, type cd then the path.
Example: cd public/graphics/cursors/flowers
Then that would take you to that folder. To go to the parents directory of a directory (as weird as that sounded) type either cdup or cd .. which will take you up one folder.
Downloading Files: Say you need to update a file that's on your computer, or you just need it to edit it, you'll need to download it. Find the directory and the file you need, then type get file.php, or whatever your file name is. If you typed it correctly, it will be in the folder you specified to be your active folder before we opened the FTP.
Uploading Files: Before you try uploading a file, type ! to get back to the operating system screen. Make sure that you have the correct file path that the file you need to upload is in. If you, type exit to get back to the FTP. Once there, make sure you're in the right folder to upload to. If so, type send file.php, or whatever you file is called. If you succeed, it will say something like Transfer Completed. And that's how that works.
Editting Files: I wasn't sure if I should make a section about this, but I thought some people might not understand. To edit your files, you edit them like you would with a regular FTP. Through Notepad, Textpad, Wordpad, whatever you use. Then you save it and upload it.
I'm pretty sure I covered the basics of what you need to know to use MS_DOS as your FTP. I figured I'd write this tutorial so you don't have to go and search for more trials of FTPs to download. Yes, using MS_DOS and be kind of slow when switching between folders and such, but it still works. I hope this tutorial has helped you, and if you have any questions feel free to E-Mail me at Sweetie080691@aol.com. Thank you.