Click here to Skip to main content
15,501,185 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: search for specific word in a text file Pin
Richard MacCutchan19-Mar-22 23:17
mveRichard MacCutchan19-Mar-22 23:17 
AnswerRe: search for specific word in a text file Pin
Raphael Adeniji20-Apr-22 6:35
MemberRaphael Adeniji20-Apr-22 6:35 
GeneralRe: search for specific word in a text file Pin
Richard Deeming20-Apr-22 7:11
mveRichard Deeming20-Apr-22 7:11 
GeneralRe: search for specific word in a text file Pin
Raphael Adeniji21-Apr-22 6:53
MemberRaphael Adeniji21-Apr-22 6:53 
GeneralRe: search for specific word in a text file Pin
Richard Deeming21-Apr-22 7:53
mveRichard Deeming21-Apr-22 7:53 
GeneralRe: search for specific word in a text file Pin
Raphael Adeniji21-Apr-22 8:20
MemberRaphael Adeniji21-Apr-22 8:20 
GeneralRe: search for specific word in a text file Pin
Richard Deeming21-Apr-22 22:20
mveRichard Deeming21-Apr-22 22:20 
QuestionRun .bat file from ftp using console apps Pin
SHAHROL AZMI BIN AMZAT13-Mar-22 22:07
MemberSHAHROL AZMI BIN AMZAT13-Mar-22 22:07 
Hi sir,

I managed to connect my ftp folder using this code :

VB
Dim reqFTP As FtpWebRequest = Nothing

  reqFTP = DirectCast(WebRequest.Create("ftp://localhost/DRIVER.bat"), FtpWebRequest)
       reqFTP.Method = WebRequestMethods.Ftp.ListDirectoryDetails
        reqFTP.Credentials = New NetworkCredential("printer", "abc123")
       Dim response = DirectCast(reqFTP.GetResponse(), FtpWebResponse)
       Dim responseStream As Stream = response.GetResponseStream()
       Dim reader As New StreamReader(responseStream)
        Console.WriteLine(reader.ReadToEnd())
       Console.Read()



My question is how to run my .bat file inside the ftp folder?

Hope anyone can help me, tq very much
AnswerRe: Run .bat file from ftp using console apps Pin
Richard Deeming13-Mar-22 23:30
mveRichard Deeming13-Mar-22 23:30 
GeneralRe: Run .bat file from ftp using console apps Pin
SHAHROL AZMI BIN AMZAT15-Mar-22 14:14
MemberSHAHROL AZMI BIN AMZAT15-Mar-22 14:14 
AnswerRe: Run .bat file from ftp using console apps Pin
Eddy Vluggen14-Mar-22 15:44
professionalEddy Vluggen14-Mar-22 15:44 
Questionconvert image to matrix Pin
CR7 Madara13-Mar-22 3:23
MemberCR7 Madara13-Mar-22 3:23 
GeneralRe: convert image to matrix Pin
Richard MacCutchan13-Mar-22 3:32
mveRichard MacCutchan13-Mar-22 3:32 
AnswerRe: convert image to matrix Pin
Kenneth Haugland13-Mar-22 7:08
mvaKenneth Haugland13-Mar-22 7:08 
QuestionSimple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
lewist577-Mar-22 14:57
Memberlewist577-Mar-22 14:57 
AnswerRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Richard MacCutchan7-Mar-22 22:21
mveRichard MacCutchan7-Mar-22 22:21 
QuestionRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
CHill607-Mar-22 22:22
mveCHill607-Mar-22 22:22 
AnswerRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
lewist578-Mar-22 12:34
Memberlewist578-Mar-22 12:34 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Dave Kreskowiak8-Mar-22 16:57
mveDave Kreskowiak8-Mar-22 16:57 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
lewist579-Mar-22 9:17
Memberlewist579-Mar-22 9:17 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Dave Kreskowiak9-Mar-22 10:11
mveDave Kreskowiak9-Mar-22 10:11 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
lewist579-Mar-22 14:57
Memberlewist579-Mar-22 14:57 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Dave Kreskowiak9-Mar-22 15:59
mveDave Kreskowiak9-Mar-22 15:59 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Richard MacCutchan8-Mar-22 23:14
mveRichard MacCutchan8-Mar-22 23:14 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
lewist579-Mar-22 9:10
Memberlewist579-Mar-22 9:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.