batch-file

Newby question: how could I write a program/script to automatically copy directories to a remote computer?

Firstly, I have the utmost respect for programmers & IT professionals. I'm a newby/wanna-be. I'm looking for help on developing a small program/script that helps me with the task I have detailed below. I am NOT submitting this as homework. This is work-related, but I'm NOT asking you to do my job. I'm taking this as an opportunity t...

How to play audio file on windows from command line?

In Windows, is there a simple way (i.e. something you could type on a single command line) to just play a couple of .mp3 files and then exit on its own? wmplayer, for example, does not seem to exit when finished, forcing the harried user to hunt it down and click it closed every time. (wmplayer 11 also seems to strangely repeat some f...

Batch file to search a keyword in all files of a directory

Kindly suggest how can I search a text string which will be input by the user in all files of a directory. Thanks in advance!! ...

How to run a batch file through javascript

Hi Friends, I have included the bat file path in anchor tag like this <a href='pdfs1255601585.bat'>Execute batch file</a> But its showing some security warning, before executing the bat file.. Is it possible to bypass that warning to run.. Orelse, is there any other way to run the bat file through javascript Thanks,Praveen J ...

Manipulating time in a batch file

Hi guys; I was wonderin' if someone would be able to help with this lil' batch file here. I'm trying to check when the last successful Windows Update was . Here is the code here .. @ECHO OFF SETLOCAL SET RegKey=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion SET RegKey=%RegKey%\WindowsUpdate\Auto Update\Results\Install FOR /F "skip=1 tok...

nAnt running .bat with folderPath as parameter

Hello all, I am trying to setup a nAnt task to run a batch file with 4 parameters. First 2 parameters are folder path, so it required to be wrapped with double quote. Here's my build file <?xml version="1.0"?> <project name="Proejct" default="dbsetup" > <description>nAnt script</description> <property name="project.SQLBinFolder" v...

do any one have batch file to apply and create label or base line in clearcase

here i need a batch file which can apply and create label or base line to the versioned elements in clear-case project, please provide me if any one have this ...

How to make a distributable batch file of my jar

Hi I have created a java application and created a jar file. Then I created a batch file eg-> startup.bat The contents of this file is java -jar MyApp.jar Now if I double click the batch file then my java application works because both the jar file and batch file belong to same directory. Now I copied the batch file to desktop and run...

seeking alteration in batch file

dear all, I have a batch file as under: @echo off "C:\Program Files\WinZip\WINZIP32.EXE" -min -a -ex "C:\Documents and Settings\vipul\Desktop\vipul.zip" files vipul.xls copy vipul.zip "C:\Documents and Settings\vipul\Desktop\My briefcase" copy vipul.zip "E:\Valuations\2009" exit HERE vipul.xls is the file on my desktop which is to be ...

how do i assign the arguments in the cleartool command in batch file

i have written the batch file as follows v: cd view/vob/component set /p comment="enter comment: " set /p base_line="enter baseline: " cleartool mkbl -c "%comment%" %base_line% cd\ c:` even though i assign arguments the clear tool command cant taking it, please do any one know the solution for this ...

How to create an application in IIS using command line ?

What would be the equivalent, by command line, of the create button in the Home Directory tab in IIS 6.0 ? (Used to create an application on a directory). Edit : I already know of iidvdir. Unfortunalety, it doesn't seem to work the way I want it to (or I dont use it properly). Let's say that I have a website called Website for witch the...

write to batch file to read text in a file and copy to other text file

I want read a text file on client workstation and copy that text to a text file with that workstation no. this process I need to do for 500+ workstations. I am having a NOde licence server and I updated its version so now I need to update clients also . after updating the client one file created at c:\ I need to read that file and copy ...

how to replace names recursively via windows batch operation

Hi all, I want to process a batch operation in a big directory. Actually I have the batch script for that process. But here , I have a problem. Some of the directory names, files names contain " " (space character). So in the batch operation this names passed as 2 arguments . and those lines will not work. So Iwant to rename " " with "_...

Why can't I use more than 20 files with my Perl script and Windows's SendTo?

I'm trying to emulate RapidCRC's ability to check crc32 values within filenames on Windows Vista Ultimate 64-bit. However, I seem to be running into some kind of argument limitation. I wrote a quick Perl script, created a batch file to call it, then placed a shortcut to the batch file in %APPDATA%\Microsoft\Windows\SendTo This works g...

Robocopy, Multi-Line Execute Process SSIS Task, or Output Batch File Results to SSIS

I need to robocopy files from one location to another in a SSIS package. Since the folder is on another domain, I need to impersonate another account before I run the robocopy.exe command. I found I can execute a "net use" command to impersonate the necessary user account and then execute the robocopy command immediately afterwards. I...

Batch File: Resolve Absolute Path from Relative Path and/or File Name

In a Windows Batch script is there any way to return an absolute path from a value containing a filename and/or relative path? Given: "..\" "..\somefile.txt" I need the absolute path relative to the batch file. Example: "somefile.txt" is located at "C:\Foo\" "test.bat" is located in "C:\Foo\Bar". User opens a command window at "C...

PHP exec() function

Hi All, I developed a program on windows xp and I used exec to run a ".bat" file and it worked fine. I copied the exact program on windows 2003 and the bat file didn't run. I used echo before the exec function and it seemed to work fine, I mean it echoed : D:\xampp\htdocs\x>RunDLL32.EXE printui.dll,PrintUIEntry /y /n "HP LaserJet P2015 ...

Run exec function in PHP

Hi All, I am using exec function to run a bat file and change the default printer. exec file is doing fine, bat file alone is doing fine, but the printer doesn't change when I'm calling the bat file via exec function. I put "echo 1" in the bat file. Browser showed "1" but my printer didn't change. I really need a miracle to solve this !!...

xcopy with unc path adds virtual network drives

Hello When i copy files to a some network path with xcopy command I get new virtual drives on my pc . The problem is that i do that within a batch script that runs in scheduler so i get there a lot of drives to same location. How I can copy files to a network with out getting a new drives on the pc or just remove them ? Thanks. ...

Windows batch file that reads commands from txt file

I have this test.txt file with the following content: @echo off wget -q http://subs.ro/get/21518 move 21518 %userprofile%/Desktop/21518.zip %userprofile%/Desktop/21518.zip This file is generated by a javascript and the content keeps changes. I have the following text.bat file : for /F "eol=; tokens=1* delims=" %%i in ( test.txt ) do ...