Topic "Can't Get file Attributes,"

Author Message
AntB

Guest


Crying here with my powershell script. it works beautifully when grabbing files from a linux server.

But now im trying to grab files from a windows server 2008R2 box it connects fine but when it goes to get the file i get this error:

"Can't get attributes of file 'C:\inetpub\_inetpub.zip'.

im stumped ive tried so many options.

Any advice?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please attach a complete session log file (Set Session.SessionLogPath).
_________________
Martin Prikryl
AntB

Guest


prikryl wrote:
Please attach a complete session log file (Set Session.SessionLogPath).


Thanks I cant quite work out how i should include this into my script.

would u mind showing me an example?

Kind Regards
AntB

Guest


hey so worked it out but still having the issue.
the files are definately there.

here is the logs





Quote:

. 2013-07-09 23:40:38.578 --------------------------------------------------------------------------
. 2013-07-09 23:40:38.578 WinSCP Version 5.1.5 (Build 3261) (OS 6.1.7601 Service Pack 1)
. 2013-07-09 23:40:38.578 Configuration: nul
. 2013-07-09 23:40:38.594 Local account: THESHOE\Administrator
. 2013-07-09 23:40:38.594 Working directory: C:\Program Files (x86)\WinSCP
. 2013-07-09 23:40:38.594 Process ID: 9908
. 2013-07-09 23:40:38.594 Command-line: "C:\Program Files (x86)\WinSCP\winscp.exe" /xmllog="C:\Users\Administrator\AppData\Local\Temp\2\wscp2A34.03EE7DB9.tmp" /xmlgroups /nointeractiveinput /dotnet=515 /ini=nul /log="C:\Users\Administrator\Desktop\Windows_WebServer.log" /console /consoleinstance=_10804_504
. 2013-07-09 23:40:38.594 Time zone: Current: GMT-7, Standard: GMT-8, DST: GMT-7, DST Start: 10/03/2013, DST End: 03/11/2013
. 2013-07-09 23:40:38.594 Login time: 09 July 2013 23:40:38
. 2013-07-09 23:40:38.594 --------------------------------------------------------------------------
. 2013-07-09 23:40:38.594 Session name: Administrator@109.75.161.181 (Ad-Hoc session)
. 2013-07-09 23:40:38.594 Host name: 109.75.161.181 (Port: 21)
. 2013-07-09 23:40:38.594 User name: Administrator (Password: Yes, Key file: No)
. 2013-07-09 23:40:38.594 Tunnel: No
. 2013-07-09 23:40:38.594 Transfer Protocol: FTP
. 2013-07-09 23:40:38.594 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2013-07-09 23:40:38.594 Proxy: none
. 2013-07-09 23:40:38.594 FTP: FTPS: None; Passive: No [Force IP: A]
. 2013-07-09 23:40:38.594 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2013-07-09 23:40:38.594 Cache directory changes: Yes, Permanent: Yes
. 2013-07-09 23:40:38.594 DST mode: 1; Timezone offset: 0h 0m
. 2013-07-09 23:40:38.594 --------------------------------------------------------------------------
. 2013-07-09 23:40:38.594 Connecting to 109.75.161.181 ...
. 2013-07-09 23:40:38.594 Connected with 109.75.161.181. Waiting for welcome message...
< 2013-07-09 23:40:38.609 220 Microsoft FTP Service
> 2013-07-09 23:40:38.609 USER Administrator
< 2013-07-09 23:40:38.609 331 Password required for Administrator.
> 2013-07-09 23:40:38.609 PASS *************************
< 2013-07-09 23:40:38.625 230 User logged in.
> 2013-07-09 23:40:38.625 SYST
< 2013-07-09 23:40:38.625 215 Windows_NT
> 2013-07-09 23:40:38.625 FEAT
< 2013-07-09 23:40:38.640 211-Extended features supported:
< 2013-07-09 23:40:38.640 LANG EN*
< 2013-07-09 23:40:38.640 UTF8
< 2013-07-09 23:40:38.640 AUTH TLS;TLS-C;SSL;TLS-P;
< 2013-07-09 23:40:38.640 PBSZ
< 2013-07-09 23:40:38.640 PROT C;P;
< 2013-07-09 23:40:38.640 CCC
< 2013-07-09 23:40:38.640 HOST
< 2013-07-09 23:40:38.640 SIZE
< 2013-07-09 23:40:38.640 MDTM
< 2013-07-09 23:40:38.640 REST STREAM
< 2013-07-09 23:40:38.640 211 END
> 2013-07-09 23:40:38.640 OPTS UTF8 ON
< 2013-07-09 23:40:38.640 200 OPTS UTF8 command successful - UTF8 encoding now ON.
. 2013-07-09 23:40:38.640 Connected
. 2013-07-09 23:40:38.640 --------------------------------------------------------------------------
. 2013-07-09 23:40:38.640 Using FTP protocol.
. 2013-07-09 23:40:38.640 Doing startup conversation with host.
> 2013-07-09 23:40:38.640 PWD
< 2013-07-09 23:40:38.656 257 "/" is current directory.
. 2013-07-09 23:40:38.656 Getting current directory name.
. 2013-07-09 23:40:38.656 Startup conversation with host finished.
< 2013-07-09 23:40:38.656 Script: Active session: [1] Administrator@109.75.161.181
> 2013-07-09 23:40:38.843 Script: get -nopermissions -preservetime -transfer="binary" -- "c:\inetpub\wwwroot\portal.png" "E:\ServerFolders\WebServer_Backups\Windows_WebServer\portal.png.1140-09072013"
. 2013-07-09 23:40:38.843 Listing file "c:\inetpub\wwwroot\portal.png".
. 2013-07-09 23:40:38.843 Retrieving directory listing...
> 2013-07-09 23:40:38.843 TYPE A
< 2013-07-09 23:40:38.859 200 Type set to A.
> 2013-07-09 23:40:38.859 PORT 192,168,1,2,228,184
< 2013-07-09 23:40:38.859 200 PORT command successful.
> 2013-07-09 23:40:38.859 LIST -a
< 2013-07-09 23:40:38.874 125 Data connection already open; Transfer starting.
< 2013-07-09 23:40:38.874 226 Transfer complete.
. 2013-07-09 23:40:38.874 03-15-13 04:55PM <DIR> $Recycle.Bin
. 2013-07-09 23:40:38.874 07-14-09 06:06AM <DIR> Documents and Settings
. 2013-07-09 23:40:38.874 07-08-13 07:00PM <DIR> inetpub
. 2013-07-09 23:40:38.874 03-30-13 11:32AM 93 key.bat
. 2013-07-09 23:40:38.874 04-16-13 11:59AM <DIR> logs
. 2013-07-09 23:40:38.874 07-01-13 04:07PM 1610080256 pagefile.sys
. 2013-07-09 23:40:38.874 07-14-09 04:20AM <DIR> PerfLogs
. 2013-07-09 23:40:38.874 06-11-13 12:12AM <DIR> Program Files
. 2013-07-09 23:40:38.874 07-04-13 01:42AM <DIR> Program Files (x86)
. 2013-07-09 23:40:38.874 06-10-13 11:44PM <DIR> ProgramData
. 2013-07-09 23:40:38.874 03-05-13 11:16PM <DIR> Recovery
. 2013-07-09 23:40:38.874 03-07-13 10:55AM <DIR> System Volume Information
. 2013-07-09 23:40:38.874 03-06-13 05:25PM <DIR> temp
. 2013-07-09 23:40:38.874 05-24-13 02:07AM <DIR> tmp
. 2013-07-09 23:40:38.874 05-19-13 12:39AM <DIR> Users
. 2013-07-09 23:40:38.874 06-24-13 01:10PM <DIR> var
. 2013-07-09 23:40:38.874 06-11-13 12:11AM <DIR> Windows
. 2013-07-09 23:40:38.874 Directory listing successful
< 2013-07-09 23:40:38.874 Script: Can't get attributes of file 'c:\inetpub\wwwroot\portal.png'.
< 2013-07-09 23:40:38.874 Script: File or folder 'c:\inetpub\wwwroot\portal.png' does not exist.
. 2013-07-09 23:40:38.874 Script: Failed
> 2013-07-09 23:40:39.046 Script: exit
. 2013-07-09 23:40:39.046 Script: Exit code: 1
. 2013-07-09 23:40:39.046 Disconnected from server

AntB

Guest


any update on this ?
AntB

Guest


Still waiting on update when you have a moment.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
WinSCP does not support file systems with non-Unix-like paths.
http://winscp.net/tracker/show_bug.cgi?id=49
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License