🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: fj.lang.visualbasic
3 messages
3 total messages Started by Koji Kubo Tue, 17 Mar 1998 00:00
[Q]ファイル、パスの存在チェック方法
#426
Author: Koji Kubo
Date: Tue, 17 Mar 1998 00:00
18 lines
1267 bytes
 久保と申します。

 VB5で、ファイルおよびディレクトリパスが存在するかどうか
チェックする方法をご存知の方がいらっしゃれば教えてください。

 実際にやりたいことは以下のようなことです。

Private Sub Command1_Click()
    Filecopy txtInfileName.Text, txtOutFileName.Text
End Sub

 上記のように画面から元と先のファイル名を直接入力させ、Filecopy
ステートメントで、コピーしたいのですが、この時、元のファイル名お
よび先のディレクトリ名が実際に存在しないとエラーとなるので、コピ
ーの前にチェックして適切な処置をしたいのです。
 コモンダイアログを使用してもいいのですが、できれば画面から直接
コピーしたいのでよろしくお願いします。
Re: [Q]ファイル、パスの存在チェック方法
#430
Author: 市崎 大介
Date: Tue, 17 Mar 1998 00:00
8 lines
965 bytes
Dir関数を使ってみるといいかもしれませんね。

Koji Kubo wrote in message <6elbh4$ep2$1@ptop03.ptop.ad.jp>...
> 久保と申します。
>
> VB5で、ファイルおよびディレクトリパスが存在するかどうか
>チェックする方法をご存知の方がいらっしゃれば教えてください。
Re: [Q]ファイル、パスの存在チェック方法
#437
Author: Koji Kubo
Date: Wed, 18 Mar 1998 00:00
5 lines
855 bytes
久保です。
市崎さん、直接メールをいただきました大久保さん、早速のご教示
ありがとうございました。
おかげさまでうまく行きました。またよろしくお願いします。
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads