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

Add time to Windows script

I have this mini Windows Script which is execute every hour it basically create a file every hour but I need to rename the file using date (which is already done) but I am not able to add the time .....code that creates my perfstats01.txt file: SET…
karlochacon
  • 51
  • 2
  • 6
0
votes
1 answer

How to start scheduled task in minimized cmd window?

Possible Duplicate: Run a .bat file in a scheduled task without a window In Windows 7, I have a scheduled task running a console application in a CMD window. It runs every day at 12 o'clock. When it runs, it opens a CMD window that is not…
0
votes
4 answers

Disable remote desktop through CMD or script in Windows 2008

I'm looking for a way to disable Remote Desktop login for Windows 2008 for a specific user (a local administrator account), either using the command line or a script (such as VBS) in Windows 2008. I understand I need to modify the local security…
0
votes
1 answer

How to check which roles are installed on a Windows Server 2003 with cmd.exe?

If I log into a Windows Server 2003 and I want to check with cmd.exe which roles are installed, how to do that?
JohnnyFromBF
  • 1,259
  • 6
  • 21
  • 25
0
votes
2 answers

how can i switch to another user in mysql via cmd

hello everyone i'm try very hard to switch to other user created by me with password but i am not able to switch it, i've searched on google but i don't know what type of error is it it says access denied for user ''@'localhost' to database '*', and…
Krishna Sarswat
  • 1
  • 1
  • 1
  • 1
0
votes
2 answers

Transferring files from ftp to local system

I want to copy a file from FTP and paste it to my local system. I want to run this through a batch file. I am trying this for a week. But I couldn't find the solution. Anyone help me please.... This is my actual work Want to copy a file named…
Phillips
  • 1
  • 1
  • 2
0
votes
1 answer

How to set env variables and run multiple commands with PsExec?

How can I run multiple commands with PsExec, and how can I export environment variables? I can run two commands by doing the below, but when I try to export an environment variable the second command errors out. Running two commands: psexec…
0
votes
1 answer

Security settings * differences between cmd.exe window and IE

I plan to retrieve an rss file (xml format) with url http://alerts.weather.gov/cap/ma.php?x=0 from a web site periodically with a scheduled task. I have a php script to do that. When I access the url in IE9 it shows the RSS. When I load it with…
user823527
  • 107
  • 2
0
votes
2 answers

batch file to strip numbers from filename and pad to two digits

I have a text file with a list of server names (servers.txt) that looks something like this: server1 server2 server3 I have a feeling this can be done with the FOR command as I use that to perform an action on each name in the file, but I'm not…
ss2k
  • 285
  • 1
  • 3
  • 10
0
votes
1 answer

PowerShell - type no inside every directory and open up notepad2

Do you know the notepad command in PowerShell or cmd.exe? I would like to do the same for NotePad2 I would like to type the following command inside PowerShell and open up the me.txt file; PS C:\Apps> no -me how can I configure that?
tugberk
  • 937
  • 4
  • 13
  • 30
0
votes
1 answer

How to create a windows user from the command line, using a password from a file

Im in a somewhat unique situation. I am trying to create a windows user, using the command line or a batch file. I know how to do that in the basic case: net user username password /add The problem is that i am doing this through an endpoint…
0
votes
2 answers

Windows Command SC, how to check errorlevel

I'm looking for a way to check the returncode / errorlevel of the SC command in a DOS script. How can I get this information ?
nojetlag
  • 101
  • 1
  • 3
0
votes
2 answers

Escape TAB in cmd.exe?

I need to pass a tab character into a program from the command-line on Windows. eg: grep "foobar" filename However, cmd.exe's auto-completion gets in the way. On Unix, you can hit Ctrl-V before the TAB to escape the special function of TAB. In…
user63144
0
votes
5 answers

How to get coloured file listing in windows cmd shell?

A few older ones in here will probably remember a cute little proggie from DOS days, hdir it was called. Did nothing special, except show the file and directory listing in colour. (there were others that did the same thing, but I used this one, so…
Rook
  • 671
  • 6
  • 15
0
votes
2 answers

Application running as a service is not able to create the same number of processes as when it runs from cmd

I have a Windows application which creates up to 35 processes and it's working OK when it's running from cmd. But when it is executed as a service on the same machine it is able to create only 20 processes and all other are killed because of some…
Pini Reznik
  • 123
  • 2
  • 6