WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   VBA: FtpSetCurrentDirectory (http://www.wcm.at/forum/showthread.php?t=31616)

daytrader 28.09.2001 11:27

VBA: FtpSetCurrentDirectory
 
Wechsle in folgendes Verzeichniß:

lngChangeDir = FtpSetCurrentDirectory(lngINetConn, "lines/business")

und hol mir dann per get ein paar Files.
und dann will ich in das Verzeichniß "lines/leute"

lngChangeDir = FtpSetCurrentDirectory(lngINetConn, "..")
lngChangeDir = FtpSetCurrentDirectory(lngINetConn, "leute")

Wie kann ich mit nur einmal lngChangeDir = FtpSetCurrentDirectory(lngINetConn, "???") in dieses Vereichniß wechseln?

_m3 28.09.2001 15:42

Nach Adam Riese und Eva Zwerg:
lngChangeDir = FtpSetCurrentDirectory(lngINetConn, "../leute")

Odrrrrr?

daytrader 28.09.2001 16:05

@_m3: ja das dachte ich auch - geht aber nicht!

_m3 28.09.2001 16:30

Und absolut?

lngChangeDir = FtpSetCurrentDirectory(lngINetConn, "lines/leute")

???

_m3 28.09.2001 16:36

Hmm laut MS-Doku <http://msdn.microsoft.com/workshop/n...tdirectory.asp> sollte es sich aber so verhalten. Was sagt denn FtpGetCurrentDirectory wo Du bist? Bzw. fragts Du eventuelle Fehler ab?

daytrader 28.09.2001 20:41

auf .. kommt true
auf /xy kommt true
auf xx/xy kommt true
auf ../xy kommt false


Alle Zeitangaben in WEZ +2. Es ist jetzt 08:37 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag