Thread: How to program in unix

  1. #16
    Registered User Cpro's Avatar
    Join Date
    Oct 2006
    Posts
    149
    Update:
    Ya, i'm still trying. I tried sftp this time instead of ftp and "lpwd" works.
    When i type in "pwd" or "lpwd" i get :
    Code:
    sftp> pwd
    Remote working directory: /home/name
    sftp> lpwd
    Local working directory: /home/name
    When i try "lcd" to change my local directory to my desktop or my c drive:
    Code:
    sftp> lcd "C:\Documents and Settings\User\Desktop"
    Bad escaped character '\\D'
    sftp> lcd C:\
    Couldn't change local directory to "C:\\": No such file or directory
    Any new suggestions?
    My instructor suggested securefx so we could just drag and drop the files, however i believe you have to pay for it after the trial (haven't tired it yet). Are there any similar programs to this (where you can just drag and drop your files) available for free?

    (Btw, I have Windows XP MCE)

    Thanks.
    IDE - Visual Studio 2005
    Windows XP Pro

  2. #17
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    double up all of the backslashes. You can thank Bill's rage against compatibility for that.

  3. #18
    Registered User Cpro's Avatar
    Join Date
    Oct 2006
    Posts
    149
    Like this:?
    Code:
    sftp> lcd "C:\\Documents and Settings\\User\\Desktop"
    Couldn't change local directory to "C:\\Documents and Settings\\User\\Desktop": No such file or directory
    sftp> lcd C:\\
    Couldn't change local directory to "C:\\\\": No such file or directory
    IDE - Visual Studio 2005
    Windows XP Pro

  4. #19
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Given the heritage of the tool, I'd be tempted to try / as the directory separator.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #20
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by Cpro View Post
    Like this:?
    Code:
    sftp> lcd "C:\\Documents and Settings\\User\\Desktop"
    Couldn't change local directory to "C:\\Documents and Settings\\User\\Desktop": No such file or directory
    sftp> lcd C:\\
    Couldn't change local directory to "C:\\\\": No such file or directory
    Somedays it seems you just can't win. It will take longer, but: you could always go one directory level at a time. For instance, if you need to go up two levels, you could try two commands of "lcd .." and then go down one directory at a time, with "lcd Desktop" or whatever. Painful, but it might work better.

  6. #21
    Registered User jian2587's Avatar
    Join Date
    Feb 2008
    Location
    NY
    Posts
    11
    lcd "C:\\Documents\ and\ Settings\\User\\Desktop"

    or

    lcd "C:\\Docume~1\\User\\Desktop"

    or

    lcd "C:/Docume~1/User/Desktop"

    I recommend you try the last one.

  7. #22
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Quote Originally Posted by Cpro View Post
    Are there any similar programs to this (where you can just drag and drop your files) available for free?
    Try WinSCP.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with my program...
    By Noah in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 07:49 PM
  2. C Program to calculate the FILE Size Sytem in Unix
    By anwar_pat in forum C Programming
    Replies: 6
    Last Post: 02-23-2006, 10:17 AM
  3. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  4. Replies: 2
    Last Post: 05-10-2002, 04:16 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM