F fatman Active Member Licensed User Longtime User Jan 31, 2020 #1 Hi to all, sure a simple question- but i haven´t found an answer so far. I´m trying to copy a textfile from a local sql-server and i´m checking if the file exits first like that: B4X: If File.exists("\\srv-sql01\documents\mydocuments\","data.csv") = True Then Msgbox("File exists","Message") End If That does not work. What am i doing wrong? Thx in advance for hints and suggestions Fatman
Hi to all, sure a simple question- but i haven´t found an answer so far. I´m trying to copy a textfile from a local sql-server and i´m checking if the file exits first like that: B4X: If File.exists("\\srv-sql01\documents\mydocuments\","data.csv") = True Then Msgbox("File exists","Message") End If That does not work. What am i doing wrong? Thx in advance for hints and suggestions Fatman
DonManfred Expert Licensed User Longtime User Jan 31, 2020 #2 fatman said: \\srv-sql01\documents\mydocuments\ Click to expand... if this in a network-share Use a SMB Library. jcif-ng for example. jcif-ng can work with SMB 2/3 Protocol. jcifs-ng SMB-Client (SMB2) Foreword: I do have nearly zero knowledge about SMB-Protocol. I know Windowsshares and how to access them. But my knowledge about the Different Protocolversions is really low. About two weeks ago someone contacted me and asked me to write a wrapper for a SMB Library because the available SMB... www.b4x.com If the share is using SMB 1 Protocol then you also can use the SMB Library. Last edited: Jan 31, 2020 Upvote 0
fatman said: \\srv-sql01\documents\mydocuments\ Click to expand... if this in a network-share Use a SMB Library. jcif-ng for example. jcif-ng can work with SMB 2/3 Protocol. jcifs-ng SMB-Client (SMB2) Foreword: I do have nearly zero knowledge about SMB-Protocol. I know Windowsshares and how to access them. But my knowledge about the Different Protocolversions is really low. About two weeks ago someone contacted me and asked me to write a wrapper for a SMB Library because the available SMB... www.b4x.com If the share is using SMB 1 Protocol then you also can use the SMB Library.
W Walter Lucindo New Member Licensed User Jul 13, 2020 #3 fatman said: Oi a todos, certeza de uma pergunta simples- mas eu não encontrei uma resposta até agora. Estou tentando copiar um arquivo de texto de um servidor sql local e estou verificando se o arquivo sai primeiro assim: B4X: Se file.existe ("\\srv-sql01\documents\mydocuments\","data.csv") = True Then Msgbox ("Arquivo existe","Mensagem") Fim de Se[/CÓDIGO] Isso não funciona. O que estou fazendo de errado? Thx com antecedência para dicas e sugestões Fatman [/CITAÇÃO] Click to expand... Upvote 0
fatman said: Oi a todos, certeza de uma pergunta simples- mas eu não encontrei uma resposta até agora. Estou tentando copiar um arquivo de texto de um servidor sql local e estou verificando se o arquivo sai primeiro assim: B4X: Se file.existe ("\\srv-sql01\documents\mydocuments\","data.csv") = True Then Msgbox ("Arquivo existe","Mensagem") Fim de Se[/CÓDIGO] Isso não funciona. O que estou fazendo de errado? Thx com antecedência para dicas e sugestões Fatman [/CITAÇÃO] Click to expand...