How do I find out the current week number of the year in DOS?
example: today is week = 25
I'm looking for a way to take a directory which includes subfolders and their respective files and list them in a csv/txt file. example:
parent directory: c:\homefolder
sub directories: c:...
I am in need of a txt file that provides a listing of files with the name archive*.pst*, including the size of the file and the owner. Using the following command, I have been able to get most...
I have a newly changed file, called "modified.asp"
Now, "modified.asp" also resides in about 100 subfolders.
I need a batch file to locate each occurance of "modified.asp" and copy over it w...
Hey I have 2k8 window server installed does this bring any pop3 server on it. I want to create my own app to look at the mail that comes in.
Hi,
I have a DOS application that needs to print to LPT1. I have been using:
"net use lpt1 \\machine_name\shared_printer_name" to capture LPT1 and direct to the printer. This has been worki...
Hi,
I am writing a batch file that will copy files and directories from one directory to another directory.
The files that are being copied are always from a known directory, however the...
I want to create a DOS batch script that will send an e-mail to users to when servers will get rebooted, however I would like the e-mail to be sent to users on the day of the reboot, based upo...
I have two property files one contains some comments and one property called
build=0299
which we will call file test.properties
Then I have another file called version.properties which cont...
I was wondering how many other people still defrag their servers. A lot of the folks I have been work with don't do it any more but I am a little old school and still think there is performanc...
I have a copy command to backup a file. I want to preseve instances of that file so I would like to include the date and time each time i copy it. How do I get that data into the string
c...
Hello friends.
please help me to figure out solution for following problem;
I need to compare two text files, both containing hostnames for following outputs; to find out if the each hostnam...
I have this code ... this check everything under c:\accounts\
but I want to tweak it in a way that it only scan first level of folders under accounts.
How is that possible?
Hi Experts,
I discovered that one of the web servers sends out large amout of junk mails, and because of that, I wanted to see if the computer has any strange behavior. i typed netstat -an...
I am trying to create a batch file that when it runs, it sets a variable equal to a registry entry/key so that I can use that variable to make a comparison. The problem is that I cannot seem ...
Our software sends emailed reports using BLAT. I need to capture the variables that are sent to BLAT.EXE. The software does not allow me to modify it or examine the code to see what it pass...
I need a script to delete this:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Mobile Client\Software Distribution\Execution History\System\AR000006
I have a text file of computers I want to d...
I have several users who save files with the directory path 256 characters longer. The file items become corrupted and inaccessible. Besides advising users to save these files with shorter nam...
I want to copy a folder and all subfolders from my mapped v: drive to the c: drive. I want this to occur every ten minutes. I have written a bat file and am running it from a scheduled task ...
Hello,
Say I have 2 files.
File1.txt
---------------
abc
def
ghi
.....
File2.txt
---------------
123
456
789
......
How do I merge these two to get a third file:
File3.t...
Hi
We have some students who are using alot of time trying to hack our server.
Its a Windows 2003.
One student says he can read server logfiles and also through that get access to passwor...
I am using the following batch routine to delete .bak files from C:\Test which are older than 14 days old.
ForFiles -pC:\Test -s -m*.bak -d-14 -c"CMD.exe /C DEL @FILE"
But it won't recog...
I'm trying to get an FTP script going to ftp a file that's created by our application each night upto a remote server. I think i'm about 90% of the way but i can't get the formatting of the da...
My netcam stores 1000s of JPEGs to my Windows Home Server every day.
I need a DOS script (batch file?) which runs daily and keeps only the files with a creation date today-28 (4 weeks), all o...
I have this old DOS program from 1990 or so.
It installed it fine but does not run. It is batch file driven and I can see the batch files.
I get a message that 'metashel' is not installed an...