batch

Send a message to a machine that is powered off

I would like to send a message, or something can be an advise from a pc to an another pc (only one, or at the most 2), the latter is powered off. The pc which should send the message is a windows server 2003 os, instead the pc which should receive the message is a windows xp os. The two machines are in the same domain and they work toge...

Make command line stay open when running a bat file

I want my batch file to stay open after processing is complete. Here is my code: set CLASSPATH=C:\XSLTANT\examples\word_transform\apache-ant-1.8.1\bin set PATH=%CLASSPATH% ant >> transform.log echo "See transform.log for results" pause It closes instantly after it runs the ant build. Any ideas? Thanks. ...

converting image extension

Hi need help creating a script to convert the extension of a tif image to a .png and removing the original from the file. This is what I have. @echo off image1.tif >> image1.png when it run it show it as a .png but with a blank image. Still haven't figure out how to remove the original one from the folder. ...

remotely run a script sitting in a windows server from a unix box or from another desktop (Say windowS)

I have to run a batch job which sits in the windows server from my unix box. Or from my local machine. The win server has a userName/Pwd . How do i programmatically connect to the windows machine and run the batch? (The batch will change some file permissions in that machine) Please let me know if there is a better way of handling this ...

How to make gdb get stacktrace repeatably?

Like in for((;;)) { gdb -batch -n -ex 'set pagination off' -ex 'thread apply all bt' ffplay_g `pidof ffplay_g` >> /tmp/qq; } , but faster, without reloading GDB and symbols every time? Backtraces need to be taken by timer, not by triggering some breakpoints. ...

Running bat script from C#

I am trying to run a batch script from within a c sharp program the code I am using is shown below: Process proc = new Process(); proc.StartInfo.FileName = "G:\\Media\\Downloads\\print.bat"; proc.Start(); The script is simple (for testing purposes) and contains one line: echo hello > output.txt When I run the script from windows...

Uninstall methods in Android

Hey everybody, I was wondering where, or what is the methods used in the batch uninstaller programs? I know how to pull up lists of the applications, and the icons in a listview.. getting them into the right lists and whatever, but how do I actually uninstall the application? Thanksa ...

Why is this batch file producing extra, unexpected, unwanted characters?

I'm trying to use the following batch script to concatenate some files together: copy NUL bin\translate.js for %%f in (source\Libraries\sprintf.js, source\translate-namespace.js, source\util.js, source\translator.js, source\translate.js) do ( type %%f >> bin\translate.js echo. >> bin\translate.js ) However, when I do this, an ...

create a windows 2000 batch file that executes a mysql stored procedure

I want to create a batch file that I can run from the desktop. This batch file should execute a stored procedure in mysql. This is what i have so far, the batch file logs into the server but it doesnt execute the stored procedure <---- start: run_stored_proc.bat -----> cd\ cd Program Files cd mysql cd mysql server 5.1 cd bin mysql.e...

Are these snippets possible with HTML and/or javascript

Question: We have a situation at work where we would like to run the following scripts: xcopy /s c:\STANDAARD_DETAILS_V2\PDF\8.1A.pdf C:\STANDAARD_DETAILS_V2\TEMPDUMP del /s "C:\STANDAARD_DETAILS_V2\TEMPDUMP\*.pdf" However the I.T. manager is dead against batch scripts is there a html or javascrip code/ equivelent for doing this. ...

Created a choice batch file to launch a custom script with parameters: doesn't work

I've created a script that will offer the user a choice in which action to run from the same program. The problem is, the person who created the program I'm calling set parameters that do not have switches like / or -. Whenever I run the batch and try to call the correct action, only the executable runs without the parameters and I've tr...

how to overwrite existing files in batch

hello, i got the following batch to copy and move but i also need it to over write the file its replacing how do i do that though? xcopy /s c:\mmyinbox\test.doc C:\myoutbox ...

Batch script: how to check for admin rights

How do I check if the current batch script has admin rights? I know how to make it call itself with runas but not how to check for admin rights. The only solutions I've seen are crude hack jobs or use external programs. Well, actually I don't care if it is a hack job as long as it works on Windows XP and newer. ...