How to run two or more commands in one line: You must write && between commands. Ex: echo hey just && echo a moment && md %userprofile%\Desktop\meo && echo Wuhoo! I created one folder!
I am a little bit comfused of the video. What should i type to open an already created cmd file? sorry if i am asking too much,i dont know to use the visual studio well...
you shouldn't be sorry for asking any type of question brother, maybe you are looking for something like this: th-cam.com/video/l9h5Y_uxNy4/w-d-xo.html
Hi, is it possible to save text from the command prompt using this method?, i mean, using "systeminfo>C:\Windows\Textfile.txt" on command prompt works and creates a txt file with the system information in that path, but when i put this command on C# it creates the txt file in that path, but the txt file is empty, even running it as administrator by adding ps.Verb = "runas"; what can i do
setting the verb property to "runsas" gives it administrative rights. System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(); psi.Verb = "runas";
Again you have helped me bro but when the application opens cmd it is not closing so it is taking much ram because I am using an infinite loop. So i want to end that process how can i do that. please reply fast bro urgent
I too have a whitespace in my account name. Nothing serious about it. Just use backward slash (\) in your location. Like: C:\User\Wolf is a demon.\Desktop
Hey sir, I need some help. We have changed providers and need one of our clickonce apps to point to the new server. Any suggestestions? Our programmer was laid off. Thanks man
setting the verb property to "runsas" gives it administrative rights. System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(); psi.Verb = "runas";
Using similar logic this opens an executable in visual studios script. Fighting with this one for a while, super amazing help in the video ProcessStartInfo ps = new ProcessStartInfo(); ps.FileName = "cmd.exe"; ps.WindowStyle = ProcessWindowStyle.Normal; ps.Arguments = @"/c start .exe"; Process.Start(ps); Thank you thank you thank you
what if i wanted to run a command like (arduino-cli upload -p COM5 -b teensy:avr:teensy41 -i C:\Users\Seth\source epos\Christmas\N_Owl_Install\bin\Debug ight.ino.hex) through a c# command prompt thanks for the help
Thanks i just start learning vb, and your video help me to create my own program
Remember there’s always a random underrated Indian TH-camr that can help you with anything
haha this time its a Pakistani, my dude.
thank you... I've been looking around for this capability
Great tutorial thanks, your code works great behind button click event too.
Thank you, a really simple explain.
Excellent Bro. Thank you so much for this explanation
you're welcome :)
Thanks bro Love You
xD
haha love you too.
@@HassaanRaza 😍
@Legend Saim bhut pahle dekhe te ab mai ye method use ni karta
How to run two or more commands in one line:
You must write && between commands.
Ex: echo hey just && echo a moment && md %userprofile%\Desktop\meo && echo Wuhoo! I created one folder!
thanks, i learned one more thing, make more videos like this...you helped me, i liked :)
yes I'll be making more of these videos please subscribe so we keep doing good stuff 😄
@@HassaanRaza wait i got 13 erros lol
@@HassaanRaza can you give me your source code?
I am a little bit comfused of the video. What should i type to open an already created cmd file? sorry if i am asking too much,i dont know to use the visual studio well...
you shouldn't be sorry for asking any type of question brother,
maybe you are looking for something like this:
th-cam.com/video/l9h5Y_uxNy4/w-d-xo.html
@@HassaanRaza ty you are the best
I'm doing this on visual basic but the argument start with "@/c ..." what is the equivalence please
Hi, is it possible to save text from the command prompt using this method?, i mean, using "systeminfo>C:\Windows\Textfile.txt" on command prompt works and creates a txt file with the system information in that path, but when i put this command on C# it creates the txt file in that path, but the txt file is empty, even running it as administrator by adding ps.Verb = "runas"; what can i do
Is there any way to run cmd as admin using c#?
setting the verb property to "runsas" gives it administrative rights.
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
psi.Verb = "runas";
how to run another command after the first one? Suppose the forst command is going to a certain directory and the second commmand is making directory
mine just opens the cmd and does nothing
you are giving commands as a string a little mistake can result in the "cmd doing nothing".
excellent thank you
if i want execute another command? for example: first going to another dir, and second make a new folder in there.Thanks
José Carlos Osegueda have you figure it out?
Any idea how to use cmd in a Specflow - [BeforeScenario] code block?
Nice. Thanks )
Again you have helped me bro but when the application opens cmd it is not closing so it is taking much ram because I am using an infinite loop. So i want to end that process how can i do that. please reply fast bro urgent
How to run multiple commands one after one?
for powershell ???
read this:
stackoverflow.com/questions/30844292/running-a-powershell-script-from-c-sharp
2:14 what was the @ symbol for?
@ before a string denotes that the string contains address (this helps us with the forward and backward slashes present in any address).
Is it possible to set a function within a C# script as the argument by any chance?
no its not, you can set the resultant type which the function returns (as an argument), but not the function it self.
@@HassaanRaza Ah alright, thanks
Ok. How to show log output in textbox?
Awesome and very clear video . How can we get output of cmd operation back to c#
save it in a file and then read from it.
how to run cmd.exe as administrator.?
You earned a sub
Can you help me? even though the file path is in double quotes, it just doesn't recognize it as the path since I've got white space in my account name
I too have a whitespace in my account name. Nothing serious about it. Just use backward slash (\) in your location. Like:
C:\User\Wolf is a demon.\Desktop
Hey sir, I need some help. We have changed providers and need one of our clickonce apps to point to the new server. Any suggestestions? Our programmer was laid off. Thanks man
that seems stupid to lay off your programmer just saying hope it got solved in a timely manner no offense by the way
how can I make an installer with this?
quality 100%
Can i do that from any settings of visual studio?
if you mean using any framework of visual studio, well yes.
thanks
how to run cmd(admin) in C#?
setting the verb property to "runsas" gives it administrative rights.
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
psi.Verb = "runas";
@@HassaanRaza Thanks
/k what it means
Using similar logic this opens an executable in visual studios script. Fighting with this one for a while, super amazing help in the video
ProcessStartInfo ps = new ProcessStartInfo();
ps.FileName = "cmd.exe";
ps.WindowStyle = ProcessWindowStyle.Normal;
ps.Arguments = @"/c start .exe";
Process.Start(ps);
Thank you thank you thank you
awesome!
what if i wanted to run a command like (arduino-cli upload -p COM5 -b teensy:avr:teensy41 -i C:\Users\Seth\source
epos\Christmas\N_Owl_Install\bin\Debug
ight.ino.hex) through a c# command prompt thanks for the help
I HAVE SEARCHED TONS OF VIDEO BUT YOUR ONES SOLVE MY SOLUTION
delighted to hear that :)
wtf
all errors fixed