Results 1 to 8 of 8

Thread: Command Prompt

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    UK
    Posts
    271

    Command Prompt

    Hi,

    I know you can run 'command prompt' from the shortcut in the start menu, but thats not what I want to know.

    I want to know, after making a shortcut to 'command prompt' how do I get it to automatically run ftp and connect to a set site, automatically enter the username and password and upload a set file?

    is this possible?

    thank you,
    §tudz

    Studzworld.com - Portfolio

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Why don't you just write a batch file?

    See any DOS book since 1970 for details how
    I don't live here any more.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    UK
    Posts
    271
    and where you I find that?

    and would it be possible to execute that from VB.net using Shell32?
    §tudz

    Studzworld.com - Portfolio

  4. #4
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Originally posted by §tudz
    and where you I find that? go to a library

    and would it be possible to execute that from VB.net using Shell32? yes
    Batch files are a built-in part of the DOS platform. You'd be better off getting a book about DOS because the internet is just packed with crap advice where DOS is concerned (imho).

    Look for a book with a title like "Teach yourself DOS in 21 days". Look in the contents for "Batch Files"

    you can execute a *.bat file by either typing it's name at a dos prompt or by double-clicking its icon from windows. You can supply command lines args to them and lots of other cool stuff. (well it was cool 15 years ago). Its still a viable way to get simple file processes done without wasting effort writing a dedicated program.
    Last edited by wossname; Apr 20th, 2004 at 06:35 AM.
    I don't live here any more.

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    Create a shortcut with the following in the path text box:

    cmd /C "ftp ftp.host.com"
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    UK
    Posts
    271
    Originally posted by visualAd
    Create a shortcut with the following in the path text box:

    cmd /C "ftp ftp.host.com"
    cool thanks that works great, but what about the functions such as username, password then upload the file
    §tudz

    Studzworld.com - Portfolio

  7. #7
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    You can write a script to automate the process. Heres a link showing you how:
    http://support.microsoft.com/?kbid=96269
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    UK
    Posts
    271
    thanks for all the help...

    I have stumbled my way through a bacth file and it works great.

    thanks again.
    §tudz

    Studzworld.com - Portfolio

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width