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.

 
Top Windows Batch Solutions: 1 - 25 of 262
 
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...
I have a batch file to extract zip file using 7-zip.  The command is follows: U:\D-Database\0-script\7z e *.zip 7z.exe and *.zip file exist in 0-script folder.  U:\ is my mapped drive.  If I...
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...
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/...
I need to create and schedule a script that runs on db server on windows plateform which runs certain sql-creates a output and then send the output to ftp site. If someone has worked on somthi...
Dear Experts:     I need to write a batch file that can install ODBC connections (to Oracle database) on client's computer.     After googling I noticed that a usual way needs to explici...
Hi I would like a .bat or .cmd script that do : a) date/t >> hostname.txt b) sc queryex >> hostname.txt c) echo ==========  >> hostname.txt d) diskpart/s  scriptname >> hostname.txt ...
I want to remotely restart a bunch of computers, but I do not want them all to reboot at the same time. I have a batch file below that i want to insert a WAIT command, so that the batch file w...
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...
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...
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 ...
I have a whole bunch of batch scripts written for Windows server and most of the scripts use a common set of variables which I initialize at the top of every script. I want to consolidate the ...
Hello, The following Windows XP/Vista batch file _test.bat ... for /f "tokens=1,2" %%u in ('date /t') do set d=%%v for /f "tokens=1" %%u in ('time /t') do set t=%%u if "%t:~1,1%"==":"...
VBS or BAT to update the local registry on domain pc run by poweruser. I am trying to create a bat or vbs script to that a designated poweruser can run on a Domain Users machine to edit the...
On WinXP SP3 I want to run a couple of ROBOCOPY.EXE commands one after the other at low priority in a CMD script. If I use the START command to set the priority like this START "ROBO C" /WA...
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 have been making a batch file to copy 2 files from a CD source to the local disk. Then the batch file is supposed to run a script that will install software on the machine. I have attached t...
With  group policy on win2003 AD, I need  a batch file to copy files  with a user logon script.  I need to copy the *same*  file to two places when the user logs on to the PC The \\se...
I am trying to use a batch script to rename a file to have date and time. So far I am able to add the date but cannot figure out how to get the time also. Below is what I have so far that work...
Hello, I am trying to delete a bunch of directories from the command line in Windows.  I am getting  syntax not correct error.  Al of the folders I want to delete begin with IMG. The com...
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...
I want to search files in dos by age or last modified time .I want it in a form of a script and not using windows search option in the start menu...For example I want to find all the files tha...
Hi experts. I would like to know if there is a way to confirm a file has been successfully downloaded before deleting it on a remote server. I have a very basic batch script (running from ...
I have created a batch file with the following: echo off start "" "C:\Program Files\Foxit Software\Foxit Reader\UnInstall.exe" But when I run it, I am promted if I want to uninstall it a...
Hi, Can someone please help me out here.. i tried going through xcopy /? commands but am very confused. I basically need to back up files and folders from a folder on my C:\ to my USB stic...