丢失条目:StartGameTaskLine xd股票是什么意思思

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free.
Greetings,
Is there a command line syntax in which returns the Image Path / Location of the *.exe on the task manager?
I'm using Windows XP Professional Service Pack 3, I'm aware of the tslist(tasklist) command, but I only get all running *.exe files.
There is no way from XP's Task Manager to get this info (Vista on up, however, can show this info). While other apps, like MS/SysInternals'
GUI can show you the full path of all exe's, a built-in process called WMIC, which uses WMI, can give you this info in 's answer:
WMIC /OUTPUT:C:\ProcessList.txt PROCESS get Caption,Commandline,Processid
Or, to output to the command prompt window and not a file:
WMIC PROCESS get Caption,Commandline,Processid
Note: the command prompt will need to have admin rights to launch WMIC.
The commands above will show you output like the following, which includes the PID, process name, full path, and switches passed to the command:
helpctr.exe
"C:\WINDOWS\pchealth\helpctr\binaries\helpctr.exe" -mode hcp://system/sysinfo/msinfo.xml
helpsvc.exe
"C:\WINDOWS\PCHealth\HelpCtr\Binaries\HelpSvc.exe" /Embedding
"C:\WINDOWS\system32\cmd.exe"
"C:\WINDOWS\System32\cmd.exe"
/k cd c:\ && color 71 & & title Admin Command Prompt - %username%
You can open the system information tool under Accessory/system tools to see the actual image path along with its PID.
This may be useful for you:
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Top questions and answers
Important announcements
Unanswered questions
By subscribing, you agree to the
Stack Overflow works best with JavaScript enabledSchedule a Task
Expand the table of content
Schedule a Task
Applies To: Windows 7, Windows Server 2008 R2, Windows Server 2012, Windows Vista
You can schedule a task by either creating a basic task using the Create Basic Task Wizard or by creating a task without the wizard and supplying task information in the
Create Task
dialog box.
The procedures below describe how to create a task using either method.
If you create a basic task using the Create Basic Task Wizard, most of the task properties will be set to their default values, and you choose a trigger for the task from the most commonly used triggers.
For more information about triggers, see .
You can import a task that is defined in an XML file.
For more information, see .
For information on creating a task on a remote computer, see .
If Task Scheduler is not open, start Task Scheduler. For more information, see .
Find and click the task folder in the console tree that you want to create the task in. For more information about how to create the task in a new task folder, see .
In the Actions Pane, click
Create Basic Task
Follow the instructions in the Create Basic Task Wizard.
If Task Scheduler is not open, start Task Scheduler. For more information, see .
Find and click the task folder in the console tree that you want to create the task in. If you want to create the task in a new task folder, see
to create the folder.
In the Actions Pane, click
Create Task
tab of the
Create Task
dialog box, enter a name for the task. Fill in or change any of the other properties on the
tab. For more information about these properties, see .
tab of the
Create Task
dialog box, click the
button to create a trigger for the task, and supply information about the trigger in the
New Trigger
dialog box. For more information about triggers, see .
tab of the
Create Task
dialog box, click the
button to create an action for the task, and supply information about the action in the
New Action
dialog box. For more information about actions, see .
(Optional) On the
Conditions
tab of the
Create Task
dialog box, supply conditions for the task. For more information about the conditions, see .
(Optional) On the
tab of the
Create Task
dialog box, change the settings for the task. For more information about the settings, see .
button on the
Create Task
dialog box.
Open a command prompt. To open a command prompt, click
All Programs
Accessories
, and then click
Command Prompt
schtasks /Create [/S &system& [/U &username& [/P [&password&]]]]
[/RU &username& [/RP &password&]] /SC &schedule& [/MO &modifier&] [/D &day&]
[/M &months&] [/I &idletime&] /TN &taskname& /TR &taskrun& [/ST &starttime&]
[/RI &interval&] [ {/ET &endtime& | /DU &duration&} [/K] [/XML &xmlfile&] [/V1]]
[/SD &startdate&] [/ED &enddate&] [/IT] [/Z] [/F]
To view the help for this command, type:
schtasks /Create /?
If the Remote Scheduled Tasks Management exception is disabled and the File and Printer Sharing exception is enabled in the Windows Firewall Settings, and the Remote Registry service is running, a V1 task will be created on the remote computer even when the V1 parameter is not specified. The V1 parameter specifies that a task is visible to down-level systems.
Was this page helpful?
Not accurate
Not enough depth
Need more code examples
(1500 characters remaining)
Thank you for your feedback
Did the page load quickly?
Do you like the page design?
Tell us moreThe Command Line in Windows: Run Line
The "Run" line in the Start menu can be used
to speed up access to a whole variety of functions. Some examples of the shortcuts
that are available are discussed here.
Clicking the entry "Run" opens the box shown below, where commands may
be typed and entered.
Opening applications in Run
Although applications can be opened in a variety of ways, the Run line
often provides the quickest route. Desktop shortcut icons are also
a quick route but you have to know how to create a shortcut for all
the applications and you may end up with dozens of icons.
The best candidates for the Run line are applications that are in the
"path" environment. (Go to
more discussion of the path.) The path environment is a set
of folders whose names do not have to be included when entering a
command. The path environment variable normally includes \Windows\
and \Windows\system32\.
Many common accessories and Windows applets are in these folders
and can be opened by entering just the executable file name. Several
that I use constantly are the Registry editor (regedit) and the
(msconfig).
Note that neither of these frequently used system tools has an entry
in Start- All Programs. The Run line is the standard method
of accessing them.
table listing some applications that can be opened in the Run line
is given below.
Entry for Run
Opens calculator
Opens command prompt window
Opens Windows explorer
Screen magnifier accessory
System Configuration Utility
Opens Hearts game
System Information applet
Opens graphics accessory Paint
Notepad accessory
Registry editor
Opens Classical Solitaire game
not in the path require their full address, including the
root folder and all subfolders. Actually typing long
path names is not required since a "Browse" function
comes with the Run line. This provides a way to search for files
of interest and to enter them directly without typing. If desired,
frequently used programs can be added to the path environment using
the methods that are discussed in a .
Opening Management Consoles Some of the functions that I find convenient to open by means of the Run
line include various . For
example, the
is opened by
"dfrg.msc" . I find this easier than the multi-step process
involved otherwise. A list of the appropriate file names for opening
some of the various services is given in the table below. A more
complete list .
Entry for Run
Manages the Indexing Service
compmgmt.msc
Computer Management Console. It contains a number of the other consoles
devmgmt.msc
Device Manager
Disk Defragmenter
diskmgmt.msc
Disk Management
gpedit.msc
Group Policy Editor. Not available in Windows Home editions
services.msc
Manages the many services involved in Windows and installed software
Opening Control Panel Applets
It is also possible to use Run to open the applets that appear in the Control
Panel. A full discussion of shortcuts to Control Panel applets is
given . For example,entering "main.cpl" launches the
mouse properties window. Rundll32.exe There are a number of commands employing Rundll32.exe that can be
entered into Start-Run. A full discussion can be . Opening folders in Run
Not only files but also folders can be opened in the Run line. Folders
contained by a folder in the path are in this category. Examples
are folders within \Windows\ and \Windows\system32\ such
as the folders
and "Drivers". Folders
that are in \Documents
and Settings\{Current User}\ can also be opened in Run. An example
(written as one word).
Being able to open this folder in Run
is convenient for
editing. It makes it easier to add functions to the "Send To" entry
in the right-click context menu. ()
Another example of a folder from the same location that can be entered
is Cookies.
Note about Vista: Certain system folders like SendTo and Cookies are not directly accessible in Vista. See the . There are also some interesting shortcuts to folders that are available
in Run. Typing the backslash (\) in the run line and entering it
brings up the root folder, usually the C: drive. Typing and entering
a period (.) brings up the folder \Documents and Settings\{Current
User}\ in Windows XP (or Users\(Current User} in Vista). Entering two periods (..) opens the folder
\Documents
and Settings\ (or Users in Vista).
Dragging and dropping folders and files into the Run line If the Run line is open (make sure it is empty) folders or files can be
dragged and dropped on it from an open folder window. The full
path of the dropped object will be inserted into the Run line and
clicking "OK' or pressing the "Enter" key will open the dropped
file or folder. Although this feature presents no particular advantage
in general, it can be helpful to those who have trouble with double-clicking
the mouse.
Adding applications to the Path
The ability to enter a short file name into the Run line to open a program
can be extended to any program by putting the folder containing the
program executable into the path. Adding folders to the path is . Alternatively, the Registry can be edited to explicitly contain
the path to the desired executable file or files. The Registry
key involved isHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App
Create a new sub-key with the name of the executable file that you wish
to add to the path. e .g.,
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App
Paths\somefile.exe
In this new key, add a string variable named "Path" containing the
value of the the path to your new executable file, e.g.,
C:\Program files\newprogramfolder\
The new key will already have an empty variable (Default). Edit it to
have the string value of entire address of the new program executable
C:\Program files\newprogramfolder\somefile.exe
You can now enter "somefile.exe" into the Run line to open the program.
An example of what the Regedit entries look like is shown in the figure below.
I have added a chess game with the executable "winchen.exe" to the
A number of
files are likely to have already been added on your system. Many
applications place themselves here when they are installed. Examples
are Microsoft Office components. It is sufficient to enter
"winword" into the Run line to open Microsoft Word or "excel" to
open Microsoft Excel.
Internet Applications If you are connected to the Internet, entering an URL into Run opens Internet
Explorer (or other browser if it is properly associated) and takes
you right to the appropriate web site. The "Browse" function can
be used to go to your Favorites folder and you can then click on
a link. (Be sure the Browse function is showing "All files" as
the file type.) On some systems it will even initiate a Web connection
if you are not already on-line. You can also start e-mail by entering “mailto:”.
This will open a blank new e-mail with the address already entered.
If you want to use an e-mail client other than the Microsoft application
Outlook Express, it will have to be associated with the “mailto” function.
Many e-mail clients do this automatically when they are installed.
(As far as I know, this does not apply to AOL.)Google supports a command line function that allows for simple searches
on on a single term. Enter "/search?q=%1" into the
Run line, where %1 is the term that is being searched. A dash can
be used to combine words. For example, try "/search?q=windows-registry"
(Omit the quotes.) Comparison of Run with the Command Prompt Although a great many commands can be executed in either the Run line or a
command prompt, some commands will run directly only in one or the other.
Commands which are built into the command interpreter
be entered
in the Run line without first invoking cmd.exe.
They are . These
include commands like
"dir" and "del". Certain special features of the Run line
such as the direct way of opening folders or the Internet shortcuts
discussed above do not work in a command prompt unless prefaced with the . Accessing the Command Shell from Run The command interpreter can be invoked to carry out a command from the
Run line by entering cmd /c some_commandWith the switch "/c", some_command will be carried out and the command shell will then close. If you want the command shell to remain open, use the switch "/k". Enter cmd /k some_command The Run Line in Windows Vista or Windows 7 The Start menu in Vista has no Run line in its default setting. Many of the functions of Run can be carried out in the new Search function that is at the bottom of the Vista Start menu but I still like to use Run sometimes. You can get Run back temporarily by using the keyboard shortcut Windows key+R. To put Run permanently back in the Start menu
Right-click on the Start button and choose "Properties"
Select the "Start Menu" tab and click on the "Customize..." button
Check the "Run command" option
Click "OK"
NavigationYou've reached a degraded version
because you're using an unsupported version of Internet Explorer. For a
experience, please upgrade or use a .
Associated Press
Seven Kansas City Royals on track to start All-Star Game
MINNEAPOLIS -- The Kansas City Royals have used last year's World Series appearance, this year's hot start and some early season fireworks to catapult the team toward a potentially record-breaking All-Star Game.Seven players on the AL champion Royals are on track to start in the July 14 game at Cincinnati in what would be a record total for one team.Catcher Salvador Perez, first baseman Eric Hosmer, shortstop Alcides Escobar, third baseman Mike Moustakas and designated hitter Kendrys Morales all led their positions in voting totals released Monday. Lorenzo Cain was first among AL outfielders, with teammate Alex Gordon third, behind AL MVP Mike Trout of the Los Angeles Angels."It's really exciting," Hosmer said before the Royals opened a three-game series at Minnesota. "Just to see your name on the ballot is exciting enough. Then to realize there's only three weeks left in the voting and a lot of us are at the top of it, it's really cool and really special for a lot of us."Kansas City's Omar Infante was second among second basemen with 2.65 million votes, 150,000 behind AL batting champion Jose Altuve of Houston.Major League Baseball said the record for most starters from one team is held by the 1939 New York Yankees with six: catcher Bill Dickey, center fielder Joe DiMaggio, second baseman Joe Gordon, third baseman Red Rolfe, pitcher Red Ruffing and left fielder George Selkirk.Fans elected seven Reds to start the 1957 game in St. Louis, but after concluding half the fan ballots came from Cincinnati, baseball commissioner Ford Frick added Willie Mays and Hank Aaron to the NL lineup in place of Reds outfielders Gus Bell and Wally Post.Voting runs through July 2, and starters are to be announced the weekend of July 4-5."It's just a testament to our fans, how special our fans are, that they've really taken the time to get out and vote for these guys," Royals manager Ned Yost. "Seven guys even shocked me today a little bit. We still have a ways to go but so far it's been very encouraging for our boys."Perez leads all vote-getters with 4,419,620 votes, Cain received 4,211,472 and Moustakas had 4,046,726, the only three players to top 4 million to this point."Obviously a lot of this is people in Kansas City and our fan base, but when you're talking about a guy like Salvi or Cain having 4 million votes, I think it goes a lot farther than just Kansas City," Hosmer said. "They're a big help. Everyone around the country is really taking notice to how we play the game and respecting how we do it."The long-struggling Royals ended a 28-year playoff drought and advanced all the way to the World Series, where they lost to San Francisco in seven games. They started this season 7-0, were 28-14 on May 23 and also drew headlines by brawling with the Chicago White Sox and emptying the benches three straight days against the Oakland Athletics in April."It definitely helped and the beginning of the year we got off to a good start and also had some excitement in some other ways," Hosmer said with a smile. "That definitely drew some more viewers and that had a lot to do with what's going on with the All-Star votes.

我要回帖

更多关于 逗比 的文章

 

随机推荐