Tagged Questions
4
votes
3answers
146 views
If a Windows cmd.exe is running with elevated privileges does anything I execute from its prompt also run with elevated privileges?
If my cmd.exe Window says "Administrator" in the title bar, indicating it was started with elevated privileges, does this mean anything I execute from this command window is also run with elevated ...
1
vote
1answer
9 views
output both stderr and stdout to file, and only stderr to command prompt
When my batch script runs, I want any errors to show up on the command prompt, so the user sees it straight away, while suppressing all the standard output that shows up.
But I want everything to be ...
3
votes
1answer
47 views
What is the “shell:” prefix in windows command line mean?
I learned here that I can type "shell:RecycleBinFolder" in the start menu and it will bring up the recyle bin -- and sure enough it does.
But what does "shell:" even mean? in what context does it ...
0
votes
2answers
37 views
Command Prompt being Illogical? Want to add numbers using Rename
My camera only numbers photos using 4 digits, but I am now well into the 5 digit realm. So for thousands of photos, I would like to add a fifth digit. E.g. rename IMG_2450 to IMG_12450.
I did this ...
1
vote
1answer
24 views
Windows: Get duration of video file from command line?
In Windows, is there a way to get the duration (e.g. in seconds) of an AVI file from the command line?
I'm fine with using 3rd party tools - the more common, the better.
Thanks!
0
votes
0answers
24 views
Why ICS cmd window pops up?
Every time I start my PC, this Internet Connection Sharing cmd window pops up. Some commands are displayed and then it stops. And then I need to close it. What's the problem? I never encountered this ...
1
vote
1answer
59 views
Batch script to rename folders from a list
I am trying to write a batch script that will rename folders that are defined in a list.txt file.
FOR /F %%a IN (C:\SCRIPTS\list.txt) DO RENAME "%%a" "%%a_delete" && EVENTCREATE /T ...
0
votes
2answers
20 views
How to use shortcut “start in” option in windows, using command prompt
I have an executable. I want to start that program in a different folder, rather than starting it in my current folder. Shortcut does have an option where you can specify where you want to start the ...
0
votes
5answers
71 views
Automatically extracting text files via commandline and combining them into a single text file
In-Depth Explanation of Problem:
I'm trying to automate a process on my computer and having some difficulty. Each day, I'm emailed a zip file that contains a txt file. I have a script in place that ...
4
votes
1answer
52 views
Bad sectors in external HDD
I've had this external HDD for around 3 years give or take 6 months. For the last month or so, it was pretty slow but it worked. A few files couldn't be copied onto my system but files could be ...
0
votes
2answers
44 views
Creating folder alias like %SystemRoot% in windows 7
I'm trying to create a shortened path to a directory that is nested in a lot of directories (ie C:\Users.......................................\TestApp\Data\32\TutorialData which is 80+ characters to ...
3
votes
2answers
71 views
How can I navigate in command prompt to a remote folder which has been shared among users? [duplicate]
So basically I want to go to 192.xxx.xxx.xxx\myFolder to see the files in it.
I go with Explorer and it works fine, I can even delete and/or modify and add files to it.
The problem is that I'm ...
0
votes
2answers
38 views
When compressing a file on command prompt with RAR command, how to stop the process without cancelling it?
I used the following command:
rar a -m2 file.rar *.xml \\myroute\
I want to stop the process on the file that have already been processed i.e. using Ctrl + C will cancel the process but not finish ...
0
votes
2answers
92 views
concatenating string in FOR loop in batch file
I have a file sfsview_monitor1.txt with the following content:
Total pages: 16320
Pages used: 142
Pages free: 16178
I want the output like this:
16320 142 16178
with the following code I am not ...
0
votes
0answers
16 views
Obtaining previous day's User Log details from the command line
Generally we can find the User Log details for a particular day by using Quser at the command prompt. Is there any way or particular command to find the User Log details for the previous day also?
0
votes
2answers
39 views
How to print the default java classpath from the command line in windows
I'm doing some trouble-shooting which requires me to know the default classpath under windows. There's java code which will do this (e.g. ...
0
votes
2answers
33 views
Windows batch file, use the “|” (OR) character
I'm trying to work on a batch script for windows (.bat) that executes some commands, and need to send the '|' character as a parameter. Here's an example:
echo hello|world
this will never return ...
0
votes
1answer
64 views
How can I display the time stamp of a file with seconds, from the command line?
How can I display the time stamp of a file with seconds,
(creation date/time, modified date/time, and access date/time. All, with seconds).
from the command line?
0
votes
1answer
74 views
How can create a password prompt in a batch file?
For a batch thing I'm making, I need to know how can create something like a password system, that hides the text you're typing and/or replaces it with asterisks (*) – so nobody can see what I'm ...
3
votes
1answer
68 views
Writing command output in Windows cmd to a file (with a twist)
So I'm trying to run foo.exe, but I don't want the output to the terminal but into a file. Running foo.exe > foo.txt should accomplish this for me, but it's not. When I'm running the exe-file, I ...
0
votes
1answer
30 views
Can't terminate psexec process with either ^C or ^Z
I couldn't terminate a remote process started through psexec, I've tried ^C and ^Z, but that doesn't kill the process.
What other choice do I have, other than closing the cmd window?
0
votes
0answers
30 views
How do I get NET SESSION to display computernames / hostnames?
On my W7 box at work I send some jobs off to some nodes on a cluster, then when I want to check which nodes have sessions open on my W7 box I usually just type NET SESSION at the cmd prompt and I get ...
-3
votes
1answer
35 views
Shortcut target field, window size [closed]
I have a game that I have set to startup in windowed mode, however I would like to know if there is a way to define the window size, here is an example of the target field:
C:/program ...
1
vote
1answer
40 views
How to concatenate all files with a certain extension in directory structure
I'm trying to write a simple script for the windows command line that takes all files in the directory structure (files in the same folder as well as other folders in that directory), and concatenates ...
4
votes
2answers
45 views
Ping every ip in a textfile?
Let´s say I have here a textfile with some computer names (each line == 1 name):
computerA
computerB
computerC
...
Is it possible to create a batch file that is pinging all of these computers? And ...
0
votes
0answers
28 views
Windows Command Prompt Redirection
I'd like to redirect all input and output to a file, so I can keep a record of a given 'command session'.
I know that I can redirect a single command with:
command > file.txt
, or use the TEE ...
0
votes
1answer
33 views
Is there a windows app that allows you to save and reopen multiple CMD(command line prompt)
Is there a windows app that allows you to save and reopen multiple CMD(command line prompt)including where it was saved?
For example,
CMD1 -> c:\
CMD2 -> c:\folder2
CMD3 -> ...
2
votes
1answer
63 views
How start PowerShell from cmd by specific path
I want to start PowerShell (C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe) from windows 7 default command line (cmd) and go to the specific path.
I used the command:
start ...
1
vote
2answers
83 views
How do I actually open a program from a batch file? All it does is open a command prompt with that file name [duplicate]
I'm currently trying to learn Batch file scripting so maybe I'm just not seeing what I'm doing wrong but I am just making a very simple batch file that opens up a text file.
Here is the code I am ...
0
votes
2answers
83 views
Leave cmd windows open (called from batch script)
I am launching 4 executables from a batch script:
@echo off
start ../../../../LD_Server.exe 12321 23432 11221 3
start LD_Client.exe 12321 pero
start LD_Client.exe 23432 tina
start LD_Client.exe 11221 ...
-2
votes
2answers
75 views
When did the windows command line get the pipe (|)? [closed]
I freely admit I have very little experience with the Windows cli but I seem to recall that DOS had no pipe (or redirect for that matter, but I may well be wrong, its been a while).
I have seen some ...
0
votes
1answer
61 views
List all text files whose names are exactly five characters long on the whole C: drive – make the listing output in wide format [duplicate]
I have tried
CD C:\
DIR /s /b ?????.txt
But I will return all files whose names are within 5 characters so how to only display exactly 5 character??
Thank you so much~
-4
votes
0answers
22 views
Not able to Assign value in variable by using cmd script on windows server 2008 [closed]
I am working on a cmd script, it's working fine on Windows Server 2003 but when I am using ii in Server 2008. Here is the code
set /A chartCnt=0
set /A missingCnt=0
set /A failedCnt=0
set /A ...
0
votes
0answers
39 views
Create a folder with current year & month, windows command line? [duplicate]
How to use mkdir to create a folder with this something like --> folder1-2013-04 (but the year and month should be dynamic and generated automatically.
2
votes
1answer
38 views
How to start CLSIDs from the command line?
Some of my shortcuts in Windows are pointing to targets that look like CLSIDs, and I cannot modify the target, it's grayed out. They look like this: {ED228FDF-9EA8-4870-83b1-96b02CFE0D52} (non-working ...
1
vote
1answer
37 views
Clear windows command prompt screen using keyboard shortcuts
Is there any way of clearing the command prompt screen in windows using keyboard shortcuts?
3
votes
3answers
83 views
How to pipe data over tcp from the command line?
I would like to pipe data from one machine in the command line to another machine over tcp. I guess I could write a socket server but this must already be implemented. For example I could use it to xz ...
0
votes
0answers
16 views
Deploying IIS website via command line HTTPS using Appcmd
I need help deploying a number of websites via command line, I know I can do this with the following code, but need the sites to be HTTPS and their certificates specified which have already been ...
0
votes
0answers
56 views
Despite being able to run “javac” through the command line, “where javac” doesn't match anything. Why?
Here are both input/outputs:
Running javac:
D:\>javac
Usage: javac <options> <source files>
Running where on javac:
D:\>where javac
INFO: Could not find files for the given ...
0
votes
0answers
38 views
How can I make dir command in cmd.exe to behave as though it were under a different Locale?
When I change my System Locale to a Simplified Chinese (PRC), and I open cmd.exe, a dir command will display the Chinese character file names correctly.
If my System Locale is English (United ...
0
votes
0answers
37 views
VMware: Best way to assign static IP and DNS entries for guest machines?
I'm looking for a scriptable solution for assigning a static IP address and DNS entries for VMware guest machines. There is a pool of IP addresses we allocate for internal use, so I need to be able to ...
3
votes
3answers
68 views
Can you dynamically resize Windows Command Line window?
Windows Command Line window has a fixed size. You can change it, but not on-the-fly, with a mouse.
But maybe it's just me or my system (Windows 7).
Can you dynamically resize Windows Command Line ...
0
votes
1answer
63 views
Adding Microsoft console (CMD) font in registry does not work with Eastern Asian language for non-unicode programs
The known registry setting in
LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont
Allows you to add font by having the Value Name to be a multiple of 0 and Value Data ...
2
votes
3answers
195 views
How to use Cmd's tab autocomplete effectively?
I've used the Bash shell on Linux for years and I'm very fast with it. By frequently appealing for autocomplete by hitting the tab key, I'm able to write long commands in few keystrokes.
Recently at ...
0
votes
0answers
40 views
Linux shell equivalent to “cmd /k” [duplicate]
I am working in a multi-platform (Windows and Linux), multi-shell environment. The Windows "shell", cmd, can be executed as cmd /k command, which makes it execute command, but then its console remains ...
1
vote
1answer
60 views
Copying all the files of one extension into a folder
I have been trying to write a .bat program which will find all the files with a given extension, for example *.doc, and will put them into a rar archive.
I want all the files to be copied even if ...
3
votes
1answer
42 views
Find all directories containing semicolon ( ; )
How can I search for all directories/folders which contain the character ;.
From this question I see I can search for any other character using, e.g. to find all directories containing a
dir /S *a* ...
0
votes
3answers
44 views
Windows command line - can't copy text [duplicate]
I am trying to copy the output of a shell script to the clipboard. I right-click, select Mark, select the desired text, press Ctrl + C and then Ctrl + V into a Notepad file, but there's nothing to be ...
0
votes
1answer
53 views
How to create a batch file that will run cmd and a exe with parameters
How to create a batch file that do following:
For example program name is hi.exe will do the following:
Run hi.exe in cmd with arguments hi.exe -f%l%.
Instead of %1% I want user to input the ...
1
vote
3answers
156 views
Batch file with changing drive letters
My goal is to create a batch file that will extract the contents of a zip file to a separate directory. Every file related to this question is on the same flash drive.
The following command works ...



