I want to do two steps in my c++ program using system().   open the folder  system("cd /d ...") run another program.exe     However, it seems like when I run step2, the folder opened in step1 is already closed. What can I do to make sure that the folder won't be closed, so that I can use another cmd call to run .exe?  Thanks!
121448
In an information security lab I'm working on, I've been tasked with executing multiple commands with a single call to "system()" (written in C, running on Fedora).  What is the syntax that will allow me to execute more than command through system()?  (The idea being you could execute arbitrary commands through a program running on a remote computer, if the program interacts with the OS through the system() call.)  I.e.:  char command[] = "????? \r\n";  system(command);
81218
I am trying to do a new environment or command (i tried both) where i can put in the name, description and code of a Method in c++ and it gives me a new section with the MethodName, the code listed and the description below. But i am not able to use the listings environment in a new command or new environment.. Consider my MWE   \documentclass[a4paper,11pt]{article} \usepackage{listings}  \newcommand{\method}[3] { \section{#1}\label{#1} \begin{lstlisting} #2 \end{lstlisting} #3 }   \begin{document}  \method{MethodName}{Method Void MethodName()}{Description of the Method blablabla}  \end{document}   How can I fix this?   I would prefer to do it using a macro since I don't need an ending.
93841
When I try to delete one of these two shortcuts, a message appears saying, "If you remove this file, Windows or another program may no longer work correctly."! I don't think that it is possible to keep same named files into a single directory. Is this any malware or anything harmful for my PC?
17306
How are these fundamentally different &quot;things&quot; on Windows? Aren't all running things Processes? It seems that every Application has an associated process that shuts it down if it is shut down. It looks like one process can manage more than one application instance. And Services, I'm not even sure what they are, exactly. Are they not processes themselves?
106417
I have a program on my path.  The program runs when executed with a full path specified.  But the program cannot be found when I run it with just its name.    Essentially, I want to understand how the below output is possible, and how to fix it so that my program can actually be found without a full path specified:  root:/usr/local/bin# ./siege **************************************************** siege: could not open /usr/local/bin/etc/siegerc run 'siege.config' to generate a new .siegerc file **************************************************** root:/usr/local/bin# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games root:/usr/local/bin# siege bash: /usr/bin/siege: No such file or directory root:/usr/local/bin# wtf!?!?   I'm on Ubuntu 12.04 using bash.  Also please note the warning output from siege is not relevant for the purposes of this question, as I am only interested in whether or not the program can be found and invoked.
95613
I have 3 folders with large amount of data in each which has to be maintained seperately. Can I create a sym link or shortcut.in windows which should show me the merged contents of the 3 folders. I am not looking for library conf in Win7.   Any suggestion is highly appreciated.
65150
Can't open a folder in windows 7 64bit, by double clicking, it shows me that the default option for opening folder is "cmd" (it's highlighted when i'm right clicking a folder, and the "open" option comes next). I've tried running some registry fixing tools, but it didn't fix it. Can someone suggest me what should I do.
81740
Suppose I have a program named any_program.exe and my operating system drive is C:. The location of the program is D:\Any_Folder\any_program.exe  How do I start/execute that program via command prompt in Windows 8?  I have tried the command line START any_program.exe, but it shows me an error that      Windows cannot find 'any_program.exe'. Make sure you typed the name correctly, and then try again.   By the way, it worked perfectly in Windows 7. And, if I type START notepad.exe or START firefox.exe (Firefox is not installed in C: drive), it works in Windows 8.
9781
Many programs needs folder names that starts with a dot, like .emacs.d, .gimp-2.2, .jedit etc. How do I create such a folder?  When using the Windows Explorer in Windows 2000 (and other versions), I get an error message saying "You have to enter a filename". The only solution I have come up with, is to open a command prompt (Start > Run > "CMD" > OK) and enter mkdir .mydir.  Why have Microsoft this error message in the Explorer, but not in the command shell? Is there any registry hack out there to fix this, so that I am able to enter the folder name directly in the Explorer?
75414
When browsing in Windows Explorer, sometimes I want to start a command prompt "here", e.g. with the current browsed folder as the current directory.  For example, when I am browsing "D:\Foo\Bar\Bar1", I want to open the command prompt with current dir pointing to this directory. Normally what I do is   Copy the current folder path from Windows explorer's address bar Open cmd via Start Menu > Run  Type D: (because I have to change drive, the default is C:)  Type "cd " and then paste the folder path that I copied earlier   I do it quite often in my daily work, and I think by adding a context menu I will improve my efficiency (and also having to do the above repeatedly can be kind of annoying). I imagine I can just Right-Click > Start cmd here and then I will have a command prompt already in D:\Foo\Bar\Bar1  Is this possible?
93241
I have a simple Win 10 batch script to open a bunch of folders within Explorer at system startup, however there's a problem with the last command's path containing whitespaces, as instead of opening a new Explorer window as expected, it opens a CMD window with the path as a system command: @ECHO OFF start C:\Users\Darek\Fallout2 start C:\Users\Darek\Fallout2\data\scripts start C:\Users\Darek\Pobrane_2 start &quot;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC&quot;  How do I write the last command so it works correctly?
103511
Possible Duplicate:          In Windows Task Manager it seems that I have multiple Chrome processes running, even though I only have one Chrome window open.   How is this possible? I always thought each open program represented one process.
19218
How do I execute a command-line program from C# and get back the STD OUT results? Specifically, I want to execute DIFF on two files that are programmatically selected and write the results to a text box.
112215
I have written a Windows service that allows me to remotely run and stop applications. These applications are run using CreateProcess, and this works for me because most of them only perform backend processing. Recently, I need to run applications that present GUI to the current log in user. How do I code in C++ to allow my service to locate the currently active desktop and run the GUI on it?
10025
In Windows I can write a file containing commands for cmd (usually .cmd or .bat files).  When I click on those files it will open cmd.exe and run them commands the file contains.  How would I do this in Ubuntu?         I'm sure this is a duplicate, but I can't find my answer. Its similar to these questions, but they don't answer the question:
120521
As a developer, I often have the need to open a command prompt for various purposes. For example, I use iisreset to restart my local web server.  I typically open the command window in one of two ways:   Press Win, type "cmd" and press Enter While in Explorer, hold Shift and right click on a folder, and choose "Open command window here"   However, when I open the command window in either of these ways, I do not have the full administrator privileges that I feel I am entitled to.    In order to run administrator-only applications, I have to open the command line in this relatively laborious way:   Press Win, type "cmd" Wait for the menu to populate Lift hand off the keyboard and put it on the mouse Right click the "cmd.exe" menu item Choose "Run as administrator"   This is unacceptable for several reasons:   The window always opens in C:\windows\system32, rather than my Users directory (as in approved technique 1) or the folder I want to be in (as in approved technique 2). So I often have to change directories to get where I want to go. This process is several milliseconds slower than either of my preferred methods. Performed several times a day, every day for the remainder of my career, it adds up to about ten days of lost time spent clicking and waiting and directory changing. As a programmer, performing a pointless robotic task causes me great emotional pain. As a programmer, lifting my hand is a strenuous task that causes me great physical pain.   That is why I am looking for a one-and-done solution that will let approved techniques 1 &amp; 2 open administrator command prompts.  Many programs let you permanently change their default privilege level from the Properties menu. Command Prompt is not one of those programs.    How do I make the command window run as administrator by default (even when using the "Open command window here" context menu option)?
24207
I have used Windows since childhood, and when I hear the phrase "Windows filesystem" I think of directories (folders) within directories, a folder called SYSTEM, a folder called PROGRAM FILES etc. Is this what the system is? Just the layout of the folders?  And then I recently started using Linux, and my reference book says in the linux filesystem everything starts at root and branches off from there. How is that really different from Windows? I mean, it seems the linux system and the windows system are just two ways of setting up a directory tree.  Is this what file system means?