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
1
vote
1 answer

For in batch has weird behavior while reading folders

Im trying to do a simple batch (it is not the whole thing, but that's the part that is making everything fail) @echo off for /f "tokens=*" %%G in ('dir /s /b /a:d "e:\tmp\*"') do ( echo %%G set fullpath=%%G set basename=%fullpath:~7% …
1
vote
1 answer

Need to send keystrokes to DOS app from Windows at idle logout

I am supporting a legacy Paradox 4.5 for DOS system. Our users connect to a single terminal server (Windows Server 2003) to run Paradox. We frequently need to boot everyone out of the system. Our Paradox Admin will attach to each remote desktop…
1
vote
2 answers

.cmd in Windows Server 2008 task scheduler w/o highest privileges

Is it possible to run CMD script in task scheduler as a particular user without checkin option "Run with highest privileges"? Simple test: Create D:\Admin\Scripts\TestScripts\testscript.cmd Script is very simple: echo success >…
1
vote
1 answer

Batch script terminates too soon

I need some help with Windows batch/CMD scripting. I wrote a script to record mic-in to a MP3 for 12 hours. It runs ok when running it manually. It will run with task scheduler too - just that, instead of waiting for 12 hours, it will terminate…
1
vote
1 answer

Way to run Windows command in a detached console?

I want to run iisstate in a mode that waits for a crash before dumping debugging information to a file. If I do this, though, I need to make sure it won't get stopped prematurely, as according to iisfaq.com, since it is invasive, stopping iisstate…
1
vote
2 answers

batch file, delete line by number

i have this: set myvar = ^J | FIND /N /I "texttolookfor" %WINDIR%\system32\drivers\etc\hosts now i have the lines it fined the text in how can i delete these line from the file? i know i can run over the lines with FOR but the delete part is still…
Y.G.J
  • 317
  • 5
  • 14
1
vote
2 answers

Server 2012 Core (no GUI): Remote Server manager not working

I am trying cmd --> MMC --> Server Manager and then connecting to my Server 2012 no GUI but i keep getting the following error The WinRM client cannot process the request I am unable to upload images right now This is not related to other post "How…
hpsoftware
  • 137
  • 1
  • 3
  • 10
1
vote
4 answers

How to "ignore" username and password prompt in net use

I have at the moment a logon.cmd script, that I'm using to map network drives to the users profile. It looks like this: ::Onboarding net use m: /delete net use m: \\BOB\onboarding ::Bookings net use n: /delete net use n: \\BOB\bookings…
Mattisdada
  • 57
  • 1
  • 2
  • 16
1
vote
2 answers

Specify Source IP for iSCSI initiator on Windows 2008/2008R2 using iscsicli

I have two NIC's that have access to my iSCSI network. I want to specify the initiator IP as well as the Target portal IP and create redundant links and use MPIO. This is easily done using the Advanced settings in the iSCSI initiator GUI. However,…
Andy Schneider
  • 1,543
  • 5
  • 19
  • 28
1
vote
1 answer

How to allow IIS website user to execute .cmd program

I have a situation where I need to execute a .cmd program on my IIS website. It's a 3rd party program to validate and transfer files, so I'm not able to choose otherwise. I do this by starting the program in a new process programmatically. Taking…
Martin Dandanell
  • 121
  • 1
  • 1
  • 5
1
vote
1 answer

for loop windows cmd

I'am using Windows cmd to calculate some variables. The command works fine: gut adapt_gf -InFile sla1.nc -OutFile sla_grid1.nc However, I have many sla values (sla1.nc,sla2, sla3, etc). Is there a way (for loop) so that I don't have to type inn…
Tim
  • 11
  • 1
1
vote
1 answer

What application is used to run cmd scripts?

I am creating an application whitelist in a local group policy and need to be able to run cmd script files. Simply adding cmd.exe, wscript.exe, or cscript.exe to the whitelist does not effect anything. my script files have the .cmd extention. Is…
1
vote
3 answers

Better editing and copy paste abilities for cmd.exe/windows console

Is there any interface that'll make cmd.exe (or for that matter any "console" application) more friendly ? I'm thinking easier copy/paste abilities and more powerful command editing , more like a typical unix shell.
nos
  • 2,418
  • 3
  • 21
  • 24
1
vote
3 answers

Equivalent linux command of "net start" command in windows

On Windows a command like net start mysql will try to start the MySQL service. I am looking for equivalent Linux command to do that - to change the status of services through Linux commands.
RRR
1
vote
1 answer

BAT/CMD to launch a exe multiple times with different parameters without extra bat files

Have a bat that calls a single exe for say 5-10 functions. Is there a way to make the executable run in multiple processes from a bat or cmd? for example: start cmd /k cd Program files\Prog\Happy happy.exe optimize 113 /nointerupt >NuL & …
mikedopp
  • 229
  • 2
  • 7
  • 16