Find the answer to your Linux question:
Results 1 to 2 of 2
Imp: How to "cd" to a shortcut folder (link) on windows box using FTP from a linuxbox Hi All, Windows box: windows.company.com Linux box : linux.company.com Now, when I'm doing ...
  1. #1
    Linux Newbie Sangal-Arun's Avatar
    Join Date
    May 2006
    Location
    Gurgaon, India + Denver Colorado USA
    Posts
    101

    Red face Imp: How to "cd" to a shortcut folder (link) on windows box using FTP from a linuxbox

    Imp: How to "cd" to a shortcut folder (link) on windows box using FTP from a linuxbox

    Hi All,

    Windows box: windows.company.com
    Linux box : linux.company.com

    Now, when I'm doing ftp from linux box to windows box, I'm getting "\" as my `pwd` present working directory. Looks like its my ftproot folder (defined using IIS).

    I went to the box (by doing RemoteDesktop onto the windows server) and then to this ftproot (by default) folder on Windows box and manually created a shortcut folder which if pointing to a folder on a particular drive on windows box i.e. drive:\folder1\folder2\folder_home folder. On the windows box, it's easy that if you click on this shortcut folder, it will take you over there and show you data under folder_home folder.

    If I ftp to windows server from linux server, I'm seeing the shortcut folder as "shortcut_folder.lnk" in FTP session.

    Now my ? is: what command (like "cd") should I run so that I can go to the folder pointed by the shortcut folder. Is it possible you can "change directory" to a windows created shortcut link folder within a FTP session?

    HTML Code:
    [user@build]$ ftp windows.company.com
    Connected to windows.company.com.
    220 Microsoft FTP Service
    500 'AUTH GSSAPI': command not understood
    500 'AUTH KERBEROS_V4': command not understood
    KERBEROS_V4 rejected as an authentication type
    Name (windows.company.com:user): company\aksangal
    331 Password required for company\aksangal.
    Password:								<<<<<<< gave my ADP password.
    230 User company\aksangal logged in.
    Remote system type is Windows_NT.
    ftp>
    ftp> pwd
    257 "/" is current directory.
    ftp> ls
    227 Entering Passive Mode (10,191,138,61,18,130).
    125 Data connection already open; Transfer starting.
    12-12-07  11:25AM       <DIR>          ORBIT
    12-18-08  02:07PM                    477 scm_home_aksangal.lnk
    226 Transfer complete.
    ftp> dir
    227 Entering Passive Mode (10,191,138,61,18,131).
    125 Data connection already open; Transfer starting.
    12-12-07  11:25AM       <DIR>          ORBIT
    12-18-08  02:07PM                    477 scm_home_aksangal.lnk
    226 Transfer complete.
    ftp>
    ftp> cd scm_home_aksangal.lnk
    550 scm_home_aksangal.lnk: The directory name is invalid.
    ftp>
    Kindly advise. Thanks-
    Brgds,

    ARUN SANGAL
    SCM: 1- 720 251 9962
    Email: sangal.ak04@gmail.com
    Email: sangal_ak04@yahoo.com

  2. #2
    Just Joined!
    Join Date
    Jul 2007
    Posts
    49
    Depending on your version of Windows you will need to either:

    Create a symlink on your win box to the folder you want to access (vista or win serv 2k8 only I think)

    or set a new virtual folder within IIS to point to the relevant folder you want to access

Posting Permissions

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