The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
1k views

How can I run a cmd.exe cmd file as an apache for windows cgi

It sounds simple enough, but I'm having a hell of a time getting it to work. Apache expects the first line of my script to say #!<path_to_cmd_shell> And I don't want to use perl or anything ...
2
votes
2answers
1k views

Batch file to call multiple batch files and keep going after errors

I have a batch file like this, the issue that I have is that if the first batch file fails, the second one never gets started, how can I get them to both keep going? @echo off MapNetworkDrive_J.cmd ...
9
votes
4answers
19k views

System error 1219 has occurred

I am trying to connect to a remote server and deploy a service there, through a deploy script. I start by stating "Net use" and send the credentials for the server. But here I get system 1219 error: ...
0
votes
1answer
5k views

Application Error. The application failed to initialize properly (0xC0000142)

We are constantly seeing this error message on our Windows Server 2003: cmd.exe - Application Error The application failed to initialize properly (0xC0000142). Click on OK to terminate the ...
4
votes
7answers
17k views

How do you handle “CMD does not support UNC paths as current directories”?

I am attempting to change directories to a file server such as: cd \\someServer\\someStuff\ However, I get the following error: CMD does not support UNC paths as current directories What ...
1
vote
1answer
965 views

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 ...
0
votes
4answers
3k views

Non-blinking block-cursor in Windows XP command-prompt?

Purpose I normally work in many UNIX-like environments using Xterm. I have grown fond of the non-blinking block-cursor it uses. In fact, I have grown so accustomed to it (especially in Vi) that it ...
0
votes
5answers
2k views

On windows cmd, how can I get a list of running tasks with full pathname?

I know that the TaskList command show the currently running tasks but it does not show the full pathname. Is there a way to do it?
2
votes
3answers
3k views

Copy windows shared file from cmd

Is there a downloading tool that supports Windows Shared files and works from command line? Standard copy is getting hanged with no action on my side. Tried wget but seems it doesn't 'eat' the link.
1
vote
2answers
2k views

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 ...
1
vote
3answers
864 views

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 ...
3
votes
3answers
617 views

How are “locked” files handled by the system (i.e. WinXP)?

How exactly are locked files handled by the os ? Or to be precise, why is it that sometimes I cannot delete a locked file from a Windows Explorer, but if I open a command prompt in the directory in ...
0
votes
1answer
113 views

How to customize Pipes in Windows?

I'm console application and want to save the output to a text file. So I do this: Pi.exe > Pi.txt Then open the text file and see this: Calculating Pi to 10,000 decimal places... Then I se Pi ...
7
votes
7answers
6k views

How to remove 'Administrator:' from the command promt title

In Windows Vista, is there a way to remove the word 'Administrator:' from the title of a command prompt window? The 'title' command just updates the part after 'Administrator:', so that will not do.
2
votes
4answers
17k views

Unlock AD User Account using DSMOD (command line)

Just a quick question. I need to be able to unlock user accounts from the command line, NOT using NET USER loginname /DOMAIN /ACTIVE:YES This is because our corporation lives across 4 domains, and ...
1
vote
2answers
992 views

Profile backup script for XP migrate to Vista

I have a .cmd i use to copy our users local files when they change computer. This works very well in XP/2000 but now i can see that we (large enterprise) are moving to Vista. And was wondering if the ...
2
votes
3answers
3k views

Win7 command processor (CMD.EXE) really slow

Does it seem to anyone else that the Windows 7 command processor (CMD.EXE) is really slow starting up? I ran this test from a command line (ntimer is a timing utility from the Windows server resource ...
6
votes
2answers
4k views

How to launch a new cmd window from an existing cmd window?

Simply typing "cmd" keeps it in the same window. I'd also like to do "cmd /c command" and have it run in a separate window.
19
votes
7answers
62k views

How do I restart a Windows service from a script?

I have a batch script that looks like: sc stop myservice sc start myservice it errors out because sc doesn't wait till the service is stopped. How do I restart a service with a script?
0
votes
4answers
685 views

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 ...
11
votes
5answers
3k views

What's the difference between .cmd and .bat files?

Just curious. "Cool" people in our company always use *.cmd while no one was able to explain the difference to me.
6
votes
3answers
13k views

Current date in the file name

I have scheduled backup script that makes the database dump. How can I add the date timestamp to the file name? I am talking about Windows and CMD.
2
votes
5answers
476 views

windows cmd shell environments

I use it regularly (cmd), but let's be frank, its environment sucks. No tabs, resizing the window is a pain, ... and so on. Console2 and PowerCmd fix some of these problems. But still, I'd love to ...
80
votes
8answers
129k views

Run a .bat file in a scheduled task without a window

I have a scheduled task that starts a batch script that runs robocopy every hour. Every time it runs a window pops up on the desktop with robocopy's output, which I don't really want to see. I ...
5
votes
4answers
4k views

Correct technique to find application in 32 and 64 bit versions of Vista/Windows 7 from CMD.EXE

BACKGROUND I have an existing CMD script that works fine. It launches an app from PROGRAM FILES like so "%PROGRAMFILES%\MyApp\app.exe" PROBLEM it works fine on 32-bit versions of Windows (Vista, ...