dos-batch

How to write a batch file that will open a program on startup?

At work we need to login to pidgin (the mozilla instant messenger) as soon as we start our computers. But I sometimes foget to manually login. Pidgin is setup in such a way that the password is stored, so all I need to do is click on the icon and I'm logged in automatically. So is there a batch file that can "open" the program as soon a...

i want a Dos batch file which can display which databases are running

Hi Guys i have installed Sql Server 2008, Oracle 10I and DB2, i want a Dos batch file which can display which databases are running. Thanks ...

DOS .bat script to copy files to a secure network location, how to supply credentials?

The environment is Windows Web Server 2008, and I'm just trying to copy a folder full of files to a network location (a managed backup network folder). Here is my .bat file, running in the folder with my .bat files: copy *.bak \\networklocation\*.bak pause however \\networklocation requires username x and password y, so running the sc...

How to run dos command in chain

I found the bat file from here: http://www.dostips.com/DtCodeBatchFiles.php#Batch.FindAndReplace I want to run another command after this bat, but it doesn't work. I guess there must be something wrong the the code the site provides. Anyone can give me a clue? Thanks. ...

The system cannot find the batch label specified - DEBUG

Here is a sample .cmd file I am running into an issue,the error says "The system cannot find the batch label specified - DEBUG" if "%Param1:~0,1%"=="M" set Param1=%Param1:~0,8%E goto DEBUG --->fails with error "The system cannot find the batch label specified - DEBUG" :GENERATE perl debug.pl#########################################...

Batch File to Delete Files in Folders

I have many folders in a directory that contain various files. Each filename begins with XXX_ where XXX could be the name of the folder the file is in. What I am needing to do is to go through all those folders and delete any file where XXX is the name of the folder that file is in. ...

How to read data from COM port using batch file?

Hello, Is there a DOS/ Batch command which can be used for reading from the COM port? I tried to look for that but didn't find solution... Thank you in advance. ...

Importance of Learning MS DOS

Hi, I'm teaching an introductory class to brand new computer engineering students. This week I'm going to teach basic MS DOS commands and batch files (and a few weeks later unix). Last year some students were whining that "it wasn't necessary anymore". Since I insist on teaching it, I have some reasons in mind. But I'd like hear you guy...

DOS CMD send failure to Autosys

In Autosys, I have a job that executes a fairly simple DOS batch file (.CMD). How do I communicate back to Autosys if the job has conditionally failed? If it runs and terminates, Autosys reports a success no matter what. I would like to programmatically tell Autosys if the script failed based on conditions determined within. Any help wo...