Advertisement

900 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%!

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested MS DOS Solutions: 76 - 100 of 1635
 
Hello, my memory is shot on this one. I cannot remember how to append the contents of one text file into another. I tried: Copy source.txt >>dest.txt but the results say that the file canno...
Using windows XP batch file, how can i use an IF statement to check if one variable is not eq something and another variable is eq to something and act on that result? Say varX=1 and varY=2...
Here's the background to my current situation.  I've got 8 temperamental  adsl lines, 30 computers.  This batch file adds all the routers to the local machine as persistent routes and dns serv...
I have a laptop with no parallel port. I use the computer to DJ with and the dance lights interface to the LPT1/parallel port. I'm running windows XP home. The application to run the lights re...
I have a batch file on a CD that copies an Access Database (type mde) from the CD to a folder on the hard drive. The Batch then copies a shotrcut from the CD to the desktop. The command that I...
Users on my network have a logon script called LOGON.BAT I want to perform specific processing based upon day of the week.  Basically if the day of the week is Tuesday, Thursday, Saturday, ...
Who is the DOS command line expert? Or is there another way to do what I need, maybe a SQL script? From inside a program I want to change permissions on a directory and all the files in it, sa...
I am getting the error message "The system cannot find the drive specified." when I use multiple comment lines in the "do" portion of a "for" line in my batch file.  OS is Windows Server 2003 ...
I want to be able to run 1 batch file to run 5 different batch files in their own cmd window. Currently, the 1st batch file runs (1.bat) and the 2nd batch file only runs if I exit the 1st one....
Hello, I'm trying to trim whitespace from a string variable.  I've figured out how to left trim, but can't figure out how to right trim.  There are some examples on the web, but to work the...
example path c:\temp\  --> have file a.txt,   b.txt,   c.txt I want return only filename without extension (.txt) -> a b c How do I code in Dos-batch file? Please advise, thank you
e.g. Date = 2005/02/03 set filename=%date:~4,4%%date:~9,2%%date:~12,2% The result (filename) is 20050203 How to output  20050202 ? Because "Date-1" is not worked on above. One mor...
I don't have the expertise or know-how to write a batch file to open and close Sybase sql. I can't backup my Sybase data cause it is running at the time my backup is being made. My error is "c...
I'm trying to write a batch file that is launched via the command prompt. The file will launch the batch file which copies files from one destination to another, It will look something like ...
Hi experts! I'm creating a bootable Symantec Ghost disc that needs to house the ghost image file on the DVD. I've got no problems getting the CD to boot and load up Ghost, but I'm having is...
I have an app that must be running 100% of the time.  It likes to crash.  It can't be installed as a service (I've tried a few things already)  The machine it's going to go on already has a 10...
Hi, I'm trying to write a batch file to read a textfile line-by-line and after manipulating with each line (substring, concat etc), delete some files from another directory. Content of m...
I've almost got my cleanup bat working.  I'm getting a ") was unexpected at this time" at the "for /F "tokens=1,2 delims= " %%i in ('dir %%X\%SRC5%\*.*') do if (%%j)==(File(s)) set _Count=%%i"...
I was wondering if there's a way using the command prompt to see what ports I have open/closed in my computer. If this exist how can I close or open an specific port.
I would like to automate the process of uninstalling Symantec Antivirus Client from about 40 Windows XP clients who are part of Windows Server 2003 domain and the only thing I am stuck at is h...
Hello Experts: Currently I have an access db that runs the macro to create odbc connection to connect to sql server and below is the code that I use. I need to create odbc connection throug...
Dear All, My Advanced wishes for New Year 2007. I have written the below code to read each line in a file. But if there is a space, it is considering first word of line only. So what I hav...
Hi,    I have about 2000 files labeled with the pattern "pattern_data_i" where i stands for 0, 1, 2, 3... (for example, one of the file is named pattern_data_1023, and another named pattern_d...
Hello every one knows that the lines in dos text file end in CR-LF (CR='015') and test file in Unix end only in LF ( that is the reason why we see the ^M character when we transfer the file ...
How do you do basic arithmetic in Batch scripts? Thank you.