Advertisement

635 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 Windows Batch Solutions: 1 - 25 of 1088
 
Is there a way to make a bat file wait a or delay a set period of time like 30 sec?
I am trying to use psexec to run remote DOS commands on a server. Unfortunately I am not permitted to copy the files I am running to the remote machine for security reasons. Therefore I have u...
I need to write a batch file that maps a network drive but uses a different user name and password to log on to that network share.
Hi experts, I have a Windows script that is setting the name of a file with extension of date format as yyyymmdd. It is working but I am wondering how I could modify it to make the date th...
I am trying to run an SSIS package from a command prompt, and I am trying to set it up as a batch file run as a Scheduled Task.  If I run the batch file from a command prompt manually, copy/pa...
Hi, I'm having a small problem with a particular script that I have assigned using group policy under: User Config\Windows Settings\Scripts\Logon The script is a .vbs and the idea is ...
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...
I use a batch file to map a drive on my servers.  I have one domain that "ignores" the batch file when the user logs in.  In the other domains I have the share gets mapped fine.  This is the s...
I need a command line tool to check if a port is open on my server. It should no need any 3rd party packages such as winCap ..I simply need it to incorporate it into a batch file. I have chec...
I'm looking for a batch file or script (whichever is easier) to map network drives via the "net use" command on remote machines without requiring user intervention. I have tried Psexec and ...
I need to write a bat file "script" which will read a text file and replace all "C" in position 91 with a "P" That's it.   I could hard-code the file name in the code, but it would be more ...
I need to write a .bat file that will copy 3 large files to a network share. They are large files so I need to schedule it to run over night. For example: copy source=C:\largefile1 + C:\la...
I use this script trying to install Adobe CS3 silent. I got error message (see attached file). Created a application.xml.override and putted it in the payloads folder. <?xml version...
I have an USB key that I run on various machines (w2k/xp) for diagnostics. When I plug in key autorun starts a bat file (this is working). However I can not find a way to start the bat file wi...
Dear all experts, I'm having a problem when writing a VBScript program and here is the script that I write: Sub PortMonitor (strCommand2)      Set StdOut = WScript.StdOut      Set objShell =...
Hello Experts, I'm trying to increment a variable in a batch file on a W2k3 server to create a unique output file name but my increment will not work within the do loop. Any idea's Thanks ...
Hi , I want to write a batch script which will check the Databse status and then proceed for the further task, I allready have done same task in Shell script but not able to make it in DOS (W...
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...
Hey there, any one can help to create a windows batch file to automate the whole removal process of Symantec Endpoint Protection 11 which is mentioned in this link : http://service1.sy...
Hi, I need to create a DOS batch file to run one of many possible programs, determined by the argument (a number) to the script. What I'd like is if there is no argument given to the scr...
I've got a batch script and it needs to delete archive folders that are older than 4 days.  Here are the steps the batch files does (extreme pseudocode): Delete archive folders older than 4...
I have created a VB script to create numerous users in a Windows 2000 Active Dicretory domain reading the usernames from a text file in the format firstname lastname The script creates t...
I need stderr to goto the log file also.  So in the Essbase_Backup_Log.log file will contain successful lines and any lines that error out.  Currently I'm only getting the successful lines and...
Hi All The following code I got from Genius when I asked question its working fine get ,stores list of files from folders in a variable but now there is another requirement.  I am not famil...
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...