Questions tagged [windows-command-prompt]

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

383 questions
0
votes
2 answers

how to identify a command prompt window?

Enviroment: windows 7 Currently i have machine on which we launch 2 batch files on system start up. These batch files internally run multiple programs by running on separate command prompt windows. So in effect, i have lets say 3 command prompt…
Schu
  • 123
  • 3
0
votes
1 answer

How can I select replace file automaticaly in cmd?

How can I select replace file automaticaly in the command prompt? I am trying to run the following command: schtasks /create /tn "Restart Ingenico" /tr "C:\IT_Dept\RestartShift4.bat" /sc daily /st 07:30 /y Pause When I do this, I get the following…
Yuriy
  • 1
0
votes
2 answers

Assign DNS settings on client via elevated script in GPO

i have installed windows 2012 as a member server in my existing windows 2008 DC. now i want to assign secondary DNS on my windows 7/8 client PCs. I do not have DHCP in my environment. I tried to find but could not locate an option in GPO to assign…
shikran
  • 31
  • 1
  • 4
0
votes
2 answers

How to run batch file without a window in ONE file

I know how to run batch files without a window thanks to this question here: Run a .bat file in a scheduled task without a window. The first answer is the one I am using. It states that to run a batch file without a window, create the following vbs…
0
votes
3 answers

Add a command into an existent remote console application

I manage to open a console application in a remote computer by using PSTools using PsExec.exe. C:\PsExec.exe -i 2 -s -d \128.168.500.500 -u username -p password "D:\myApp.exe" That will open a console application (not just a console) remotely. Now…
Steve
  • 203
  • 6
  • 13
0
votes
2 answers

Quit remote process and start it later

I have a console application running remotely in multiple computers. I was wondering if there's any way to quit from it remotely and then start it again. I saw the use of taskkill to quit the application, but... is that the correct way of doing it?…
Steve
  • 203
  • 6
  • 13
0
votes
0 answers

Windows 7 CMD tracert gives totally different final IP to online traceroute

So, i'm pretty damn rusty with this stuff, and been up all night for client emergency, so excuse me if i'm typing gibberish and didn't find related search results./ I'm suddenly taking over a clients site after many years of not taking on any client…
bobsya
  • 1
  • 2
0
votes
1 answer

cmd /c behaves differently on server 2012

Tried writing a batch file to shutdown my 2012 server, but ran into a weird issue. For example on 2008 a batch file like the following runs as expected: cmd /c shutdown -s -t 0 On server 2012 when I click the batch file it continuously spawns cmd…
red888
  • 4,183
  • 18
  • 64
  • 111
0
votes
1 answer

cmd: create dhcp superscope

On Windows Server 2008 (R1, 32-Bit) I've got that far to create a superscope on the command line via cmd, not PowerShell (yay!) through netsh dhcp server \\SERVER scope IP.ADD.RE.SS set superscope SUPERSCOPENAME 1 ... where IP.ADD.RE.SS is an…
erch
  • 126
  • 10
0
votes
1 answer

ping TOS values

Windows Server® 2008 offers ping -v TOS Type Of Service (IPv4-only) Trying to figure out what they mean I came that far that this has to do with IPv4's "Type of Service" Field – and that the use of this field was completely redefined and…
erch
  • 126
  • 10
0
votes
1 answer

cmd - delete IP from rule (Windows Server 2008)

I'm banning IPs using the Windows Firewall with these commands in cmd (actually in C# but using the cmd): pushd advfirewall firewall set rule name="BlockedIPs" new remoteip="1.2.3.4" action=block protocol=any dir=in popd How do I remove a single IP…
0
votes
1 answer

Problems with cscript.exe and Windows Server 2008

I was executing this command without any problem: cscript.exe C:\search.vbs D:/myfolder/ When suddenly, after closing and opening the console again, this error appears in a popup when trying to execute the same previous…
0
votes
1 answer

Batch script works on Windows 7 but not Windows Server 2008

Good Day Al I have the following batch script that loops through a folder containing .sql files. When it finds a .sql file that has today's date timestamp on it, it copies that file to a new directory. @echo off setlocal enableextensions…
0
votes
1 answer

Escape variables in command prompt cmd

I set my variable like this: SET Ant="%HOMEDRIVE%%HOMEPATH%\Downloads\apache-ant-1.9.0-bin\apache-ant-1.9.0\bin" :: Set Path variable setx PATH "%Ant%" /m Then, the result for the path variable is…
0
votes
0 answers

Print documents to PDF files via command line in Wine

I have a task to use Wine on Linux distributive for work with MS Office files doc[x] / xls[x] / ppt[x] and pdf via virtual printer. Output formats I need are png or jpg. This is for converter of documents and presentations. I can convert a ps file…