Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
B

barkanb

@barkanb
About
Posts
12
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Calling or performing Scroll Sub from another Sub
    B barkanb

    Thanks for the reply. It works now. Thank you both.:) B.B.

    Visual Basic question help

  • Calling or performing Scroll Sub from another Sub
    B barkanb

    Thanks I will test those code lines and I will post the result..;)

    Visual Basic question help

  • Calling or performing Scroll Sub from another Sub
    B barkanb

    How can I make the function below to be performed from antoher sub? Private Sub gain_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles gain.Scroll You know there is a function PerformClick for Pushdown buttons. Appriciated for your help and support. Thanks. B.B.

    Visual Basic question help

  • How to type on command window at an instance?
    B barkanb

    By adding System.Environment.NewLine into writeline command, it is working now. Thanks for your help and support. :-D ' The code below enables you to run a command ' window application (exe), and send special input ' commands to that exe application. 'Execute mon.exe file by creating a new process Dim objProcess As New Process With objProcess.StartInfo .UseShellExecute = False .CreateNoWindow = True .WorkingDirectory = CurDir() .FileName = "mon.exe" .Arguments = " " & ipno & " 4000" .RedirectStandardInput = True .RedirectStandardOutput = True .RedirectStandardError = False End With objProcess.Start() Dim sIn As StreamWriter = objProcess.StandardInput Dim sOut As StreamReader = objProcess.StandardOutput Dim s as String sIn.AutoFlush = True sIn.Write("SET IP " & ipnoNEW & System.Environment.NewLine) s = sOut.ReadToEnd() objProcess.WaitForExit(5) If Not objProcess.HasExited Then objProcess.Kill() End If MsgBox(s) B.B.

    Visual Basic csharp adobe linux help

  • How to type on command window at an instance?
    B barkanb

    Sorry for the confusion. I couldn't make it run on notepad also. Could you post me a sample code to print on notepad other than the one below. Dim objProcess As New Process With objProcess.StartInfo .UseShellExecute = False .CreateNoWindow = True .FileName = "notepad" .RedirectStandardInput = True .RedirectStandardOutput = False .RedirectStandardError = False End With objProcess.Start() Dim kb As StreamWriter = objProcess.StandardInput kb.WriteLine("A1233 ") I assume StreamWriter acts as keyboard but it is not. Maybe there is something small I am missing. I have to leave now. Appriciated for your help. Regards B.B.

    Visual Basic csharp adobe linux help

  • Insert data into file excel ?
    B barkanb

    http://www.codeproject.com/database/excel_odbc.asp[^] Check out the link.. You should know a little SQL query.

    Visual Basic help question

  • How to type on command window at an instance?
    B barkanb

    You are right about the code. It is working for cmd.exe or notepad.exe.. I also tested the code below tried a trick to work on cmd but second writeline command executes for cmd.exe only. I also tried SendKey.SendWait(). Do you think there is something to do with security permissions? Because when I make RedirectStandardInput = True, command window is opened but not responding(blank). That's why I am saving the debug info into a txt file. Dim objProcess As New Process With objProcess.StartInfo .UseShellExecute = False .CreateNoWindow = False .FileName = "cmd" .RedirectStandardInput = True .RedirectStandardOutput = True .RedirectStandardError = False End With objProcess.Start() Dim param(2) As String param(0) = Chr(34) & CurDir() & "/mon.exe" & Chr(34) & " 10.0.0.99 4000 > C:\a.txt" param(1) = "SET IP 10.0.0.98 > C:\b.txt" kb.WriteLine(param) kb.WriteLine(param(1)) B.B.

    Visual Basic csharp adobe linux help

  • Insert data into file excel ?
    B barkanb

    You can use ODBC connection for that. By using Transact SQL command like UPDATE or INSERT you will be able to print in Excel file. You can search web for an appropriate ODBC connection to a file code. B.B.

    Visual Basic help question

  • How to type on command window at an instance?
    B barkanb

    When I make the StandardInput = True objProcess.StartInfo.RedirectStandardInput = True it opens the command window but does not give any result of mon.exe. It is not enabled also. If StandardInput = False then mon.exe works fine but command window only lets input from keyboard. Should I Import any dll? B.B.

    Visual Basic csharp adobe linux help

  • How to type on command window at an instance?
    B barkanb

    Is it right below? To start monitoring? It does not seem to work properly. Dim objProcess As New Process ' Start the Command and redirect the output objProcess.StartInfo.UseShellExecute = False objProcess.StartInfo.RedirectStandardOutput = True objProcess.StartInfo.CreateNoWindow = False objProcess.StartInfo.RedirectStandardError = True objProcess.StartInfo.WorkingDirectory = CurDir() objProcess.StartInfo.FileName() = "mon" objProcess.StartInfo.Arguments = " 10.0.0.99 4000" objProcess.Start()

    Visual Basic csharp adobe linux help

  • How to type on command window at an instance?
    B barkanb

    Thanks. I will try. It will take some time. But will post the result.;) B.B.

    Visual Basic csharp adobe linux help

  • How to type on command window at an instance?
    B barkanb

    My platform: VB.NET Windows Form My case: DOS program mon.exe runs on command window. This program enables you to monitor a flash ram. To monitor ipno 10.0.0.90 from 4000 port you just type: C:\>mon 10.0.0.90 4000 Which can also be performed by VB.NET with command line: Shell("mon " & ipno & " 4000", AppWinStyle.MaximizedFocus, True) After mon.exe executes you are monitoring the ipno and a command line occurs. 10.0.0.90\> To change the ipno you type SET IP newIP: 10.0.0.90\> SET IP 10.0.0.44 At this point, I am not able to execute SET IP command line. I tried to create batch file but it didn't work. I tried :confused:: System.Console.Write("SET IP" & newIP) 'but it didn't work. I am trying to develop a Windows Form to change the ip of a special system. Can anyone help me? Should I work on batch files? Is there a way to type on command window while shell command is executing? :confused: I will be really appriciated for an answer. B.B.

    Visual Basic csharp adobe linux help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups