tasks interview questions
Top tasks frequently asked interview questions
I'm running a Visual Studio post build event that shuts down IIS if it's still running after compilation:
taskkill /f /im w3wp.exe
The following works perfectly if IIS is still running, but throws an error if it has already stopped:
Error 1 The process "w3wp.exe" not found. xxx\EXEC
Is there a way to tell taskkill to ignore the problem if it can't find a matching running process?
Source: (StackOverflow)
How to make several console windows in one tab from task file?
I want to make a grid 2x2 of consoles in one tab.
I can do it by hands when create new consoles and select "To right" or "To bottom" options.
But I want it to be created automatically on start up. Option "autosave/restore opened tasks" is unabled for some reason.
So the only way is to create it in task.
So, how can I create 2x2 grid in task?
Source: (StackOverflow)
I have the same question as here but even beyond that.
If I logout/exit the SSH connection, I need my program running in background.
Before exit, I type bg
and jobs
to check background running task, but after exiting SSH, the program doesn't run, it closes when I close the SSH window.
What can I do if I want my program still running after closing the SSH window? I do use nohup
screen
but it also doesn't work, or am I missing something?
Source: (StackOverflow)
I am having a problem where processes are hanging and absolutely refuse to die. I have tried using the task manager and pskill
from the console (with admin rights) and while the program will state that it has killed the process it still remains and I cannot open a second process. This has happened with Opera and Truecrypt.
Operating system is Windows 7 Professional (64-bit). Rebooting the computer clears the hung process.
I also tried using a program called Ultimate Process Detail & Killer, which didn't help either.
Source: (StackOverflow)
In tasks view, I have created several Task folders. When I create a follow-up, it is created in "To-do list" by default. I have to manually move it to the specific task folder.
Isn't there a way to make Outlook ask me which Task folder the task will be created, instead of creating it under "To-do list" all the time ??
Best regards
Source: (StackOverflow)
Windows 7 (Aero) does not offer an option to easily change the taskbar font size.
BACKGROUND:
I was using the Medium Text size of 125%.
(Set via Control Panel\Appearance and Personalization\Display)
The problem I found was that many programs, sad to say, Microsoft's included, don't scale or position properly at other than 100%. I've reset the DPI to 100%, and have been able to customize most of my windows settings for easy reading, except the task bar font size
In Summary:
- There are many ways to change the taskbar font color.
- I'm looking to increase the actual font size.
Source: (StackOverflow)
Spotify first killed itself but "something of it" kept lingering which was detectable as a task with PID 8664 and judging from the fact that RAM usage kept changing from time to time - it "did something".
Now first of all this process kept me from listening to music because Spotify refused to restart due to this instance hanging around.
So I tried to get rid of this process. But neither task manager nor the taskkill command (as Admin of course) succeeded in doing so.
taskkill at least gave me a "reason" which I will translate here.
>taskkill /pid 8664 /f
>taskkill /im spotify.exe /f
both gave:
ERROR: The process "spotify.exe" with PID 8664 could not be terminated.
Reason: There is currently no instance executed by this task.
I would like to know what that means and whether there is another option of how to terminate such a process.
(Windows 7 Pro 64 bit)
Source: (StackOverflow)
I was comparing the memory usage of different portable browsers but this question is general for all programs that open up in several sub-processes in task manager.
See the screenshot from Sysinternals Process Explorer below:

Firefox for example just opens up in one process, while Google Chrome starts several processes for each tab.
So how can I get the total RAM usage for all processes opened by one program? (Here for Google Chrome for example.)
Of course I could just use a calculator and reckon up the sum... but there must be a more convenient way!
Source: (StackOverflow)
Windows XP, SP3, Intel Core 2 Duo
Here are the symptoms:
- Since a couple of days is my System task permanently at about 35%
- When I want to Turn Off the computer then the Explorer needs to be force quit (not responding).
- One core is always at 100%, the other is always at about 30%
- Top busy tasks in the Task Manager: System 35%, System Idle Process 50%, Explorer 5%
- Nothing strange is showing up with ProcessExplorer, which would explain the CPU usage.
- Firewall is on.
- I don't have any AntiVirus Software installed (it's not connected to the internet ever anyway)
The computer is NEVER connected to the internet in any which way (and also not connected to my LAN because I have a massive paranoia in terms of Windows). I did not install anything in the last months. I only use the PC to develop some software (VS 2010).
How can I find out what's going on? Why do I need to force quit the Explorer when I shut it down? Something is probably "stuck" there and clogs the CPU...
Edit:
Disabling the Startup items with MSCONFIG.EXE does not help. Even with everything disabled the System task is still at 35%.
Source: (StackOverflow)
Is it possible to have the percentage complete column show as progress bars or even as a little Gantt chart?
Source: (StackOverflow)
I am running Outlook 2010 (64bit). Every task in my To-Do list is duplicated. If I 'complete' one task, the second copy also marks as complete. If I flag an email to be added to the task list, 2 copies are listed.
I only have a single email profile configured on the laptop. I have tried adding an addition email profile, and that seemed to resolve the problem, but only until I closed Outlook and relaunched.
Source: (StackOverflow)
How do I easily switch to an open folder on a Mac?
In Windows, which I'm used to using, I can see all my opened folders in my vertical taskbar, all I need to do to switch to another window is click on the folder in the task bar.
There's no taskbar on a Mac, and when I have a lot of folders opened, ie. lots of Finder windows, how can I switch between them?
The way I'm doing it is, I put expose on an active corner and switch that way. However that's still damn hard, because first I have to bring up expose, and then find my window. The folders are placed in a random position between opened apps, the folders are not in a list, and on a big screen I have to scan the whole screen in order to find the one I want... etc.
Is it really this hard just to switch to a different folder on a Mac?
Is there a taskbar solution on a Mac?
Source: (StackOverflow)