I made a batch script to copy a file from one machine to many. I'm trying to optimize it now by having it lookup the names of the machines from a text file instead of hard-coding them into th...
Hi everyone,
could someone help Me please I need To change this script which was created by (Author : Ramesh Srinivasan) To loop through a list of servers names in a text file then write th...
I have a directory on my server with over 1.3 million files. I need to know if there is some sort of a batch/script command to delete by date range. I'm trying to delete by, maybe, 3 days at ...
I am currently creating a batch file in windows to schedule a task. The task I want to schedule is to run a VBS file which works if i create it in windows. When I run the batch file It adds in...
I am trying to make a simple batch script for windows to find out if a user's folder exists on share on a server. If the folder does not exist, I want it to create one with the user's username...
vbs code to logoff and shutdown pc without any user permission.
Trying to make a simple script so I don't have to type out "runas" alot. This isn't the end product of the script but it does illustrate my problem. It does not accept the %CHOICE% for the :...
When I run the following code
Forfiles -p. -s -m*.* -d-1 -c "Cmd /C del @FILE"
I get an error
can't execute (error 2)
I am trying to create a batch file that at startup will delete...
Hi,
I've just got an NAS but it does not have a backup software/tool.
As this is a RAID 1 (mirror) of 2 disks & of the nett usable capacity of
500GB, I'm only using 90Gb. Thought of ta...
hi eveyone
i am using sitekiosk software (http://www.sitekiosk.com/) to run a series of internet kiosks around the country. i have found a problem with them killing off monitors as they sta...
I am looking at creating a BAT file that will allow me to delete all of the files in a directory except the 25 "most recent" files. The directory fills up causing space issues. I'd like to r...
Batch script to remove blank Carriage Return lines
I currently have the below script which parses a file and if any lines exist which are empty and contain:
CR
CR/LF
data blah blah CR/...
Here are the details:
1) The batch file sits in D:\
2) It needs to remove the contents of D:\test
3) D:\test must not be deleted, just its contents.
4) Its contents include dynamically n...
Hi,
I am looking for a batch file (vb) to delete all files created from 5/1/05 to 9/1/06 (from a certain flat directory). I appreciate the help. There are too many files in the directory rig...
I need to write a batch file that is deployed via a GP during logoff
I named it logoff.bat
It need to run a gpupdate /force
My issue is I need it to respond to yes to the question of ...
I need a dos batch file to go through the directory e:\webdocs AND all of it's sub-directories and find all files named application.cfm. Once the file is found, the script should First be sea...
We are trying to track down some performance problems at our branch offices. We would like to capture system information as needed. Our users do not have local admin rights on their XP works...
I have a batch file that uses PSExec to restart IIS on my workstation with code as follows:
psexec \\hostname -d c:\windows\system32\iisreset.exe /restart
It works fine when I execute...
Hi
I have a very simple batch file (.bat) which copies an EXE file from a server to C:\Program Files. This worked perfectly in Windows XP, but in Windows Vista, I get ann "Access is denied"...
I have 21 servers that I wish to shutdown but initiating a shutdown script. However I am stuck on two things;
A) Should I use Vbscript or a simple batch file
B) Depending on the answer ...
Hi,
Total n00b here when it comes to basic batch scripting, I've attempted to put together a mini batch script that takes a text file and emails it to an address using the 'Blat' cmd line S...
I am trying to make a command prompt or a vbscript that can search for certain files and delete them if it finds it.
For example:
say we are looking for file1.exe, file2.dll, file3.lnk
...
I am trying to create a batch script to run in a windows environment that will display the results of the ipconfig command and also to do a ping of the default gateway that it finds. I haven'...
I am after a simple script to take a list of user IDs and then enumerate the user's name and export to a CSV. The CSV should just be two columns, the first being the user ID and the second co...
I have a simple DOS batch file that copies a file from one drive to anther. I need to rename the file by adding the current date and time to the copied file name. DM_Database_BE_102208_12:05:0...