Basically, I'm trying to achive following :
:loop
if condition is true
then
{
echo "condition is true" > status.txt
perform_another_task1
exit out of this scri...
Hi,
Need some help with writing a short MSDOS Windows script to monitor
a website's status & email the status out. The script will be run once a
day by Windows scheduler (script will loo...
Hi,
I have a folder named Test with sub directorties. I'd like to be able to create a simple batch file that deletes all folders within test and test's sub directories that match a supplied...
As a teacher i need to access on a regular basis my pupils work directories. At the moment i have to go through a very long winded process of navigating through various windows to get to their...
Hey everyone, I have an INF file that I am installing using a command line, when the INF file is run Windows is currently prompting me if I want to overwrite target files that are older then s...
Hello,
I have the below batch file to learn batch file arithmetic:
@echo off
set TOTAL=0
set LIST=A B C D E F
FOR %%A IN (%LIST%) DO (
if "%TOTAL%" == "3" (echo Total is now 3!)
...
Hi all, I have a need for the batch script and am limited in my knowledge of it. I was hoping someone could help me write it, or at least the parsing portion of it. It needs to do following:
...
Hi,
I would like to store outputs of commands to a variable in MS DOS.
For example,
var1 = cat file.txt | cut -f1 -d ;
echo var1
In var1 , the output of expression - " cat file.txt | cut ...
Trying to use the command 'permcopy' to copy the share permissions from one folder to another. The problem being that I am writing this in a batch file, which will be run on 200+ machines. T...
I am currently using straight FTP with a batch file to upload files. The existing batch file is shown here followed by the text file being called:
Batch file:
ftp.exe -n -s:C:\folder\subfo...
I have about 1500 files that are prefixed with -- "1 - " (that is one, space, hyphen, space) up to -- "1500 - "
I need a batch to get the file name and strip out this prefix of -- number,...
I am trying to run a winrar archive update to a network share, and pipe the output to a logfile like this:
rar.exe u -hepassword -as \\server\share\archive.rar D:\localfolder > D:\log.txt
...
Hello,
Can someone please help me with find and replace strings in a file. This is what am trying to do:
FOR /F "tokens=1" %%G IN (host.txt) DO
For /F "tokens=1,2" %%A IN ('type %%G.txt'...
Hello,
I tried using a batch file to automatically map a network drive at home on Windows Vista Home Premium without asking for a password. Previously it would map the drive but would alwa...
Hi All,
I'm looking to do this wihtout any 3rd party software and to do it from within a batch file or similar.
What I want to do is to open a telnet session to our SMTP server and then ...
Hi Expert.
We a Batch-File where we are calling many T-SQL Script.
Example of the BATCH
SET mySQLCMD=sqlcmd -S .\SQLEXPRESS .....
%sqlcmd% -i script1.sql
%sqlcmd% -i script2.sql
%sql...
Hello,
I am trying to create a batch file that will be deployed silently to just do...
gpupdate /force
and that's it! The problem is, I want it to run silently but that command will ...
Running Windows XP Pro
How do I add a network printer via the command line? I would like to eventually set this up in a login script.
Hi,
I want to open a file when I click on a input button inside a locally stored html file. Currently I am using VBScript to do this, however it prompts me to 'Run' 'Save' or 'Cancel' when ...
I need a batch file that will move files from C:\backups\server1\ to \\192.168.10.110\backups\server1\ based on Date Modified. We use a software to create backups and they're kept on a backup ...
This is really stumping me. I'm trying to write a simple script for use with Windows Server 2003 machines throughout my network (~100). It's supposed to read in an IP from a text file, log in ...
Hi,
i have a text file of the format
00[data seperated by | with spaces]\r\n
01[data seperated by | with spaces]\r\n
02[data seperated by | with spaces]\r\n
00[data seperated by | with ...
Hi
I would to write a basic batch script that will connect to a cisco router over a vpn and then ping another network from that router.
In telnet all I need to do is....
telnet 10.11...
Hi,
I need a daily .bat/.cmd MSDOS script that runs at 1am that will :
a)If it's the first Sunday of the month, do :
xcopy/E/C/H/Y n:\folder1 n:\backup\folder1\yyyymmdd > n:\log\yyyy...
Hi,
I'd like to pass a parameter (a variable in SSIS) to a batch file (run the batch file with a execute process task in SSIS). The parameter is a file name. Inside the batch file the paramet...