Skip to main content

All Questions

0 votes
2 answers
978 views

Bad formatted XML with batch script

I have a batch script like below to create an XML file with specific structure and tags arrangement. @ECHO OFF SET ROOTPATH=%~dp0 SET LINEBREAK=^^%NLM%%NLM%^%NLM%%NLM% SET "TAB= " SET /p COMPANY="...
Vicky Dev's user avatar
  • 472
3 votes
1 answer
2k views

Single batch script for clearing out multiple folders except for one or two files specified priorly

I have a running Magento 2.x website's folder structure in my Windows 7 64-Bit system, at C:\UwAmp\www\magento2root path. Now this Magento root folder contains following directory-subdirectory pairs ...
Vicky Dev's user avatar
  • 472
0 votes
3 answers
2k views

mongodb not starting from command line in Windows 7

Path is where Windows finds executables, learned from MongoDB. So, on my 64 bit Windows 7 - I have added the location of MongoDB's startup path: C:\Program Files\MongoDB\Server\3.2\bin to the Path ...
Zameer Ansari's user avatar
8 votes
1 answer
60k views

"No Instance(s) Available" error with the wmic command

I'm getting a "No Instance(s) Available" error with the wmic command. The command I'm running (from an elevated/administrator cmd.exe window) is: G:\>wmic datafile where name="file.txt" get ...
Kevin Fegan's user avatar
  • 4,887
0 votes
2 answers
136 views

How to set the command (cmd) prompt colors

Pretty easy to do in Bash, but, for the life of me, I cannot find a way to change the prompt (and only the prompt) colors in Windows 7's cmd window. Note: the solution suggested in the comments seems ...
ysap's user avatar
  • 2,690
7 votes
1 answer
3k views

How can I troubleshoot my Windows command line crashing even on basic commands like ipconfig?

My Windows command line is crashing even on issuing basic commands like ipconfig: The dumps include two XML files, WER8B9C.tmp.WERInternalMetadata.xml, <?xml version="1.0" encoding="UTF-16"?> &...
Andrew Cheong's user avatar
1 vote
2 answers
1k views

Windows 7 - 64bit OS - Opens java.exe always in a separate command prompt

Upgraded my windows 7 from 32 bit to 64 bit. Installed Java 6 (64 bit) and 7 (64 bit) version. Whenever i execute "java" in a command prompt, it opens a new command prompt and execute it. Even if i ...
yottabrain's user avatar
3 votes
2 answers
4k views

I want to add a command parameter to a Windows 7 startup item

How can I do this? MSConfig won't allow you to edit the command being sent, just enable or disable.
Craig's user avatar
  • 941
5 votes
1 answer
4k views

*nix `free` or DOS `mem` equivalent for Windows 7 (64-bit)

On *nix systems, free displays the total amount of free and used memory in the system. From my research, the DOS mem command is similar, but it is not available on 64-bit versions of Windows 7. Is ...
iglvzx's user avatar
  • 23.7k
14 votes
8 answers
131k views

How to disable sleep mode via CMD?

With only the command prompt, is it possible to disable sleep mode when closing the lid of a laptop?
kb67's user avatar
  • 647
8 votes
3 answers
17k views

Is it possible to "declare" a windows cmd-file (batch-file) as 32 bit?

Background: We do quite some scripting and little helpers with batch files (xyz.cmd) at work. Windows 7 is only now starting to become widespread here, and obviously, we hit the problems associated ...
Martin's user avatar
  • 2,296
1 vote
2 answers
5k views

Commands to run function keys from command line?

Are there commands to invoke function key commands from a command prompt? I would like to script something that I can't find command line options for. Also, I don't want to install another app, like ...
CChriss's user avatar
  • 1,333
31 votes
8 answers
261k views

Uninstalling programs silently via CMD

Is there a way I can uninstall programs without the graphical interface and doing it via CMD?
kb67's user avatar
  • 647
0 votes
5 answers
3k views

Some Windows 7 compatible utilities for console/command-line junkies?

As a command-line junkie, I routinely use quite a variety of tools from LIST to PC-Write 3.02 (used as a text editor with word-wrap, box-mode processing, and a few other tricks), QBASIC (nice for ...
user avatar
1 vote
2 answers
5k views

Run Command Prompt in XP mode in Windows 7

I am trying to run a DOS application (.com) in Windows 7 64bit. It will not run on anything newer than XP. Is there any way? I can set the comand prompt to run in XP compatibility mode? The only ...
sound2man's user avatar
  • 648

15 30 50 per page