Click here to Skip to main content
15,509,705 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: Operator '=' is not defined for type for 'DBNull' and string '1' Pin
CHill6021-Apr-22 6:53
mveCHill6021-Apr-22 6:53 
AnswerRe: Operator '=' is not defined for type for 'DBNull' and string '1' Pin
Raphael Adeniji21-Apr-22 7:11
Raphael Adeniji21-Apr-22 7:11 
AnswerRe: Operator '=' is not defined for type for 'DBNull' and string '1' Pin
Richard MacCutchan22-Apr-22 0:22
mveRichard MacCutchan22-Apr-22 0:22 
AnswerRe: Operator '=' is not defined for type for 'DBNull' and string '1' Pin
CMYork0125-Apr-22 5:57
CMYork0125-Apr-22 5:57 
QuestionQuestion about creating dir Pin
User2202219-Apr-22 10:54
User2202219-Apr-22 10:54 
AnswerRe: Question about creating dir Pin
Dave Kreskowiak19-Apr-22 12:21
mveDave Kreskowiak19-Apr-22 12:21 
QuestionApp.Path & "\" & App.EXEName alternative Pin
Everdome io5-Apr-22 3:08
Everdome io5-Apr-22 3:08 
AnswerRe: App.Path & "\" & App.EXEName alternative Pin
Richard Deeming5-Apr-22 3:25
mveRichard Deeming5-Apr-22 3:25 
GeneralRe: App.Path & "\" & App.EXEName alternative Pin
Everdome io5-Apr-22 6:04
Everdome io5-Apr-22 6:04 
AnswerRe: App.Path & "\" & App.EXEName alternative Pin
Raphael Adeniji17-Apr-22 11:31
Raphael Adeniji17-Apr-22 11:31 
Questionhow to add dynamic image in crystal report from vb6 Pin
Datta Bhor27-Mar-22 8:59
Datta Bhor27-Mar-22 8:59 
AnswerRe: how to add dynamic image in crystal report from vb6 Pin
Raphael Adeniji18-Apr-22 9:40
Raphael Adeniji18-Apr-22 9:40 
GeneralMessage Closed Pin
22-Apr-22 4:01
Aman ADMEC22-Apr-22 4:01 
QuestionGoogle Drive API in VB.net check if file is opened Pin
Goldrake_Act23-Mar-22 22:47
Goldrake_Act23-Mar-22 22:47 
Questionsearch for specific word in a text file Pin
Benjamindh19-Mar-22 19:09
Benjamindh19-Mar-22 19:09 
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
Raphael 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
Raphael 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
Raphael 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
SHAHROL AZMI BIN AMZAT13-Mar-22 22:07 
AnswerRe: Run .bat file from ftp using console apps Pin
Richard Deeming13-Mar-22 23:30
mveRichard Deeming13-Mar-22 23:30 
Assuming you want to execute the batch file on the client where your code is running, you'll need to download it to a file and then execute it.
VB.NET
Using responseStream As Stream = response.GetResponseStream()
    Using fileStream As String = System.IO.File.Create("C:\Path\to\your\file.bat")
        responseStream.CopyTo(fileStream)
    End Using
End Using

System.Diagnostics.Process.Start("C:\Path\to\your\file.bat")

NB: If you were hoping to execute the file on the server, then you're out of luck. FTP does not provide a mechanism to execute files; it is only used to transfer files between computers.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Run .bat file from ftp using console apps Pin
SHAHROL AZMI BIN AMZAT15-Mar-22 14:14
SHAHROL AZMI BIN AMZAT15-Mar-22 14:14 

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.