|
OK,
I found a converter named "FFMPEG" and working on it. BTW Thanks.
___ ___ ___
|__ |_| |\ | | |_| \ /
__| | | | \| |__| | | /
|
|
|
|
|
When I call with ATDxxxx; on Port 16: "Mobile Connect - PC UI Interface"
It connect but audio stream in Port 18: "Mobile Connect - Application Interface"
How to redirect audio stream in/out the serial port 18?
Please help!
|
|
|
|
|
You should try asking in the Hardware and Devices forum.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
Hi guys ...
I was looking for a way that allow me to send a message to cmd directly ... , I've searched about an answer, but I didn't find what I want.
I want my windows Form to send messages to CMD without open a new one
I mean it's already opened on my PC but I want a way to send messages only .. So can I do that ?
I think I'll need DllImport or something like that to get it work
Thanks for your help ..
|
|
|
|
|
A "low-tech" approach is sending key-strokes to the cmd window, i.e. send the keystrokes for the characters you would type otherwise.
|
|
|
|
|
What are you actually trying to achieve in the command window? are you after running a batch file or something?
If so have a look at the ProcessStartInfo class[^]
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Hi,
I do not think it is possible in command prompt, it sound like you need a terminal window. command prompt doesn't have a gateway like terminal. In terminal window you can send messages using a gateway. with command prompt it is not possible unless you use the powershell or install powershell extension and inject a powershell command to copy/print your message to command prompt using special powershell commands.
I hope this helps.
Think! Don't write a line of code unless you absolutely need to.
|
|
|
|
|
It might help if you told us why you need to do it that way.
You would need to get the Process ID of the command prompt window first.
But, AFAIK it can't be done without intercepting stdin, stdout. I don't believe sendkeys would work.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
There are numerous things you need to think about here. First of all, what happens if you have multiple cmd windows open? Perhaps some of them are running specific long running tasks that shouldn't be interrupted. It could be that some of them have shells displayed that are waiting for user input, so sending information to them could cause problems.
The question here would have to be, what is your business requirement for not opening a new cmd window? What you might want to consider is the approach taken in the top answer here[^].
|
|
|
|
|
Hacking purposes xD
I've gotta to write a lot of lines ...
and since I am a not bad C sharper, then I don't want to bother my self writing them ...
So I want To write a program that send my commands.
I already done this with another program ...
foreach (Process Proc in Process.GetProcessesByName("NameOfProcess"))
{
}
This about what gonna happen if mote than one Program are running at the same time, It's gonna send to both of them with this code ..
What I understood till now ..
There is no way to send messages to CMD ??
Thank you guys for your Replys ..
they made the things more clear for me
|
|
|
|
|
You can't send commands to an already open CMD prompt. But, you CAN send commands to a CMD prompt that your app launched, through the StandardIn stream.
|
|
|
|
|
that's Ok for me ...
The important point that I can send more than a message for a one CMD window
So I have to use stream now ?
Thank you ..
|
|
|
|
|
Yep. It's the only way you're going to get commands to the CMD window and results back.
|
|
|
|
|
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static int Fact(int n)
{
if (n <= 1)
return 1;
return n * Fact(n - 1);
}
static int Factorial(int n)
{
if (n <= 1)
return 1;
int result = 1;
{
for (int i = 2; i <= n; i++)
result = result * i;
}
return result;
}
static void Main(string[] args)
{
Console.Write("Enter a Number to find factorial: ");
int n = Convert.ToInt32(Console.ReadLine());
int r = Fact(n);
Console.WriteLine(n.ToString() + "! = " + r.ToString());
Console.Write("Enter a Number to find factorial: ");
n = Convert.ToInt32(Console.ReadLine());
r = Factorial(n);
Console.WriteLine(n.ToString() + "! = " + r.ToString());
Console.Write("Enter a Number to find factorial: ");
n = Convert.ToInt32(Console.ReadLine());
r = Factorial(n);
Console.WriteLine(n.ToString() + "! = " + r.ToString());
Console.Write("Enter a Number to find factorial: ");
n = Convert.ToInt32(Console.ReadLine());
r = Factorial(n);
Console.WriteLine(n.ToString() + "! = " + r.ToString());
Console.Write("Enter a Number to find factorial: ");
n = Convert.ToInt32(Console.ReadLine());
r = Factorial(n);
Console.WriteLine(n.ToString() + "! = " + r.ToString());
Console.ReadLine();
}
}
}
|
|
|
|
|
|
How to save the database data to the system hard disk automatically in windows application using c#
please help me
email id :msrihari1991@gmail.com
please bford to my mail id
|
|
|
|
|
By writing code to do it. There is no such thing as "automatic" when writing code.
Nobody cares about your email address and noone here is ever going to send you one. The only people that DO care about it are the spammers and their little trolling robots that look for addresses to add to their list of victims. Congratulations! You just volunteered yours! I suggest you edit your post and remove your email address right now.
|
|
|
|
|
|
|
HI ,
I have Doc count=5 so i want create Link button in Repeater Horizontally in Windows Application . So Please give me Sample code how it is possible in Windows Form.
Regards
Ashish
|
|
|
|
|
There is no link button available in Windows Form.
However, as a workaround, you could launch a new instance or Internet Explorer or Word when you click on a button by using the Process class[^].
|
|
|
|
|
Abhinav S wrote: There is no link button available in Windows Form. But there is a LinkLabel[^].
/ravi
|
|
|
|
|
Oh cool.
That acts as a good alternate solution.
|
|
|
|
|
i am working in designing website using C# in visual studio 2010... all my pages comes under one page which is a master page .The master page contain menu which will appear in all other pages.... my request is :
1- when the user of the system will login for example as admin then all menu will appear for him while the the rest users will be able to see all the menu with all submenu except the menu that list admin rule activity which will be appear if they login only as admin....
i try to use the following code but it show error on( NavigationMenu) please provide me with the write code if possible
<pre lang="c#">void Page_Load(Object sender, EventArgs e)
{
if (!IsPostBack)
{
MenuItem homeMenuItem = NavigationMenu.Items[0];
MenuItem movieSubMenuItem = NavigationMenu.FindItem(@"Home\Movies");
if (movieSubMenuItem != null)
{
homeMenuItem.ChildItems.Remove(movieSubMenuItem);
}
}
}
|
|
|
|
|
Can you send which error its giving.
Thankst & Regards
obalesu.n
|
|
|
|