COMO VERIFICAR SE ARQUIVO EXISTE
Boa tarde, alguém poderia me informar como que eu posso fazer para verificar se um arquivo existe, antes de colar outro em cima dele ? Obrigado..
Use a função Dir.
if Dir("c:\windows\system32\sys.dll") = "" then
'Arquivo não existe
else
'Arquivo existe
endif
if Dir("c:\windows\system32\sys.dll") = "" then
'Arquivo não existe
else
'Arquivo existe
endif
If Dir(file_name) <> "" Then Exite!
Tópico encerrado , respostas não são mais permitidas