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
S

soloforce

@soloforce
About
Posts
12
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CMD.exe help
    S soloforce

    Is there anyway i can really test the syntax to make sure is all correct?

    C# help question

  • CMD.exe help
    S soloforce

    Im a network engineer for a small company, but I enjoy programing keeps my mind sharp. I dont have much expereince in programing but I sure like it. :-D

    C# help question

  • CMD.exe help
    S soloforce

    Ok I was able to verify that this test with notepad worked great so I think the error is in my arguments. The original argument that works in a command prompt is this. "/C" + ("\"\"C:\\Program Files\\RBS ThinTV\\PLINK.EXE\"" + " " + "appliance@%ThinConnectedFrom%" + " " + "-pw appliance" + " " + "\"killall -q vlc; export DISPLAY=:0.0; vlc --key-vol-up 100 rtsp://stfamtv0001/streama\"\""); So at this point since we are not using a command prompt the "/C" is nulled which leaves us with "\"\"C:\\Program Files\\RBS ThinTV\\PLINK.EXE\"" + " " + "appliance@%ThinConnectedFrom%" + " " + "-pw appliance" + " " + "\"killall -q vlc; export DISPLAY=:0.0; vlc --key-vol-up 100 rtsp://stfamtv0001/streama\"\""); Breaking this command string down we have ps.FileName = "C:\\Program Files\\RBS ThinTV\\PLINK.EXE"; and ps.Arguments = (@"appliance@%ThinConnectedFrom%" + " " + "-pw appliance" + " " + "\"killall -q vlc; export DISPLAY=:0.0; vlc --video-on-top --key-vol-up 100 rtsp://stfamtv0002/streama\"\""); The trick now i believe is int he syntax.

    C# help question

  • CMD.exe help
    S soloforce

    Ok I broke the code down and put it into a click event as follows ProcessStartInfo ps = new ProcessStartInfo(); ps.CreateNoWindow = true; ps.UseShellExecute = false; ps.RedirectStandardError = true; ps.FileName = "/C" + "\"\"C:\\Program Files\\RBS ThinTV\\PLINK.EXE\""; ps.Arguments = (@"appliance@%ThinConnectedFrom%" + " " + "-pw appliance" + " " + "\"killall -q vlc; export DISPLAY=:0.0; vlc --video-on-top --key-vol-up 100 rtsp://stfamtv0002/streama\"\""); System.Diagnostics.Process proc = Process.Start(ps); Not sure but now its getting a Win32Excepetion was unhanded error.... on this line System.Diagnostics.Process proc = Process.Start(ps); The command string is perfect.... its really weird.

    C# help question

  • CMD.exe help
    S soloforce

    No my code still is not working? ProcessStartInfo ps = new ProcessStartInfo(); ps.CreateNoWindow = true; ps.UseShellExecute = false; ps.RedirectStandardError = true; ps.FileName = "cmd.exe"; ps.Arguments = (@"/C" + "\"\"C:\\Program Files\\ThinTV\\PLINK.EXE\"" + " " + "appliance@%ThinConnectedFrom%" + " " + "-pw appliance" + " " + "\"killall -q vlc; export DISPLAY=:0.0; vlc --halfscreen --key-vol-up 100 rtsp://stfamtv0001/streama\"\""); System.Diagnostics.Process proc = Process.Start(ps); Not sure why when its put into a click event nothing happens.

    C# help question

  • CMD.exe help
    S soloforce

    Can seem to get this to work, do you mind filling on the "file to execute" and the "arguments" so i have an example.

    C# help question

  • xp sidebar in .net2005
    S soloforce

    Lots of them already coded for you :) safe=[^]

    C# csharp help tutorial

  • CMD.exe help
    S soloforce

    I’m trying to run the following command string from a GUI, everything works fine but I can minimize the command prompt or run it in hidden mode. Any way to do this? string stfamtv0001 = "/C" + ("\"\"C:\\Program Files\\ ThinTV\\PLINK.EXE\"" + " " + "appliance@%ThinConnectedFrom%" + " " + "-pw appliance" + " " + "\"killall -q vlc; export DISPLAY=:0.0; vlc --video-on-top --key-vol-up 100 rtsp://stfamtv0001/streama\"\""); private void data(string streamPath) { System.Diagnostics.Process ps; ps = new System.Diagnostics.Process(); ps.EnableRaisingEvents = false; System.Diagnostics.Process.Start("CMD.exe", streamPath); ps.Close(); } private void btnFOX_Click(object sender, EventArgs e) { data(stfamtv0001); }

    C# help question

  • Search Active Directory Help
    S soloforce

    Im new to c# asp programing and would like some help with the following. I’m trying to search active directory for a specific users “schenkp” for this case and have results outputting to a list box. Say the user is schenkp I would like to know what groups he is a member of that have the specific word “owner”. I have a web page that consist of a button, list box and a text box. This code works and returns all the member of the active directory so far when I click the button. private void Button1_Click(object sender, System.EventArgs e) { DirectoryEntry de = new DirectoryEntry("LDAP://GCM.COM/ou=user accounts,ou=accounts,dc=gcm,dc=com","user","password"); foreach(DirectoryEntry child in de.Children) { ListBox1.Items.Add(child.Name.Remove(0,3)); } } Any help would be greatly appreciated,

    ASP.NET csharp com windows-admin help

  • Displaying XML Files in a Data Grid
    S soloforce

    As I am new to C# programming I was wondering if you could help me. Attached is a xml file that I am simple trying to display in a grid control on a Windows form program. Unfortunately I keep getting the following error An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll Additional information: Cannot create a child list for field fegdata. Here is the code im using when a button is clicked. DataSet dsFeg = new DataSet("fegdata"); string filepath = "C:\\FegData.xml"; dsFeg.ReadXml(filepath); dataGrid1.DataSource = dsFeg.Tables[0]; dataGrid1.DataMember = "fegdata"; dataGrid1.CaptionText = dataGrid1.DataMember; Any help would be greatly appreciated. Peter

    C# help csharp css xml

  • Reading Data from files
    S soloforce

    I’m trying to design a simple forms program in C# that allows the user select something from a combo box and have the program reference the data in a file pertaining to the users selection. The data would then be displayed back on the form in a text box. I have the combo box already loaded up with items and i have the files ready to be accessed. How do I access the files from the user selection? Regards, Peter

    C# question csharp design

  • Active Directory Searching
    S soloforce

    As I am new to C# programming in general i am finding it very difficult to accomplish the following. I have simple widow’s forms program with a text box, button and a list box. I need to be able to enter in a group name into the txt box and have all the users of the group be returned into the list box. I have been going nuts trying to understand Windows Directory Services etc. Any help would greatly be appreciated. Peter

    C# csharp windows-admin algorithms help lounge
  • Login

  • Don't have an account? Register

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