UNC パスでファイルを開けないアプリケーションを騙す

2009-02-01 - 登 大遊@筑波大学大学院コンピュータサイエンス専攻の SoftEther VPN 日記 より。

ところが、上記パスは 「ドライブ名:¥ディレクトリ名」 の形態をとっていないので、一部のアプリケーションは「不正なパスが指定された」として表面上のエラーとして取扱ってしまう。

CD コマンドは確かにそうだなぁと思い試してみた。

C:\Documents and Settings\yamanyon>cd \\server\share
'\\server\share'
CMD does not support UNC paths as current directories.

C:\Documents and Settings\yamanyon>cd e:\\server\share
The system cannot find the drive specified.

C:\Documents and Settings\yamanyon>cd c:\\server\share
The system cannot find the path specified.

まぁこうなるのが当然なわけで。
というわけで、そのアプリケーションか API の実装がヘボいだけ、のようですがいかがでしょう…?<諸氏