Tagged Questions

Text file containing a sequence of commands or program invocations that does not need user intervention.

learn more… | top users | synonyms (1)

0
votes
0answers
326 views

how to write a script that will launch java application using the bundled jre?

basically I have MyApplication.jar and a nasty native library that will only work with 32-bit JRE. I bundled the 32-bit JRE in the /JREF folder resides in the same directory as the MyApplication.jar ...
0
votes
1answer
417 views

How to create a batch file to add metadata to movies and rename them

I want to create a batch file that does the following: Scan a folder's contents including subfolders for movie media Parse from the file name, the movie name and the year, since I am using ...
4
votes
4answers
4k views

Run a batch file before user logs into Windows 2003 R2?

I have an Amazon EC2 machine (Windows Server 2003 R2) where I want to run a script (.bat file) when the Windows Server 2003 R2 machine boots up. This need to run BEFORE any user logs in. Ideally I'd ...
0
votes
2answers
846 views

Custom Command on Windows XP Explorer's Toolbar

I have to perform a particular set of operation in large number of directories. In order to save time and effort, I created a batch file containing all the set of commands I have to run. But now I am ...
2
votes
4answers
18k views

change exe option to run as administrator by bat script on Windows 7

I can't disable UAC in Windows 7 and I want to change .exe option to run as administrator. I can right click on icon and goto compatibility then change this option through GUI but I have to do by ...
0
votes
2answers
2k views

Windows 7 Home - start a .bat file without even logging in?

I need to open a bat file as soon as the computer powers up and enters Windows. This bat file needs internet connectivity. How can I bypass logging-in or automate logging-in or something like that - ...
2
votes
1answer
921 views

Batch files can not be a passed a path with spaces when it is elevated

I am trying to create a batch file that needs to be passed a path and has operations in it that requires elevation (I use mklink in it). Here is how to recreate the problem. Make a .bat file that ...
12
votes
4answers
10k views

How to delete files from a folder using a list of file names in windows?

i have a folder with 2K+ files in it, i need to delete around 200, i have a txt file with all the file names i need removed ordered in a list, how do i remove the specific files from the folder using ...
0
votes
1answer
193 views

Generic Stealth(er) for Programs [duplicate]

Possible Duplicate: Run a completly hidden batch file Is there any program (is it even possible) that I can call from a batch file (.bat) like this: > stealthlaunch PROGRAM And it will ...
0
votes
1answer
778 views

Passing arguments to shortcuts through start+run?

I've been making shortcuts to thing I use often so I don't have a cluttered taskbar. I have shortcuts for games, thunderbird, etc, and just type winkey+r tb for thunderbird or winkey+r wa x^2+2x+3 dx ...
1
vote
1answer
1k views

Run a login script without startup folder

So I have to run a login script when User X logs on. I put that script (.bat) in the startup folder and it works fine. However, I also have to disable the explorer shell and once I do that the startup ...
1
vote
2answers
624 views

How can I pass gui batch arguments in Windows XP/7?

Is there any straightforward way to call a .bat file and have it prompt me for each of the arguments that will replace the %1 %2 and so forth fields? I can memorize their order just fine and run it ...
3
votes
3answers
2k views

Can I get UAC prompt for user from batch file?

Can I get UAC prompt for user from batch file? For example I need put some keys to registry under CurrentControlSet from batch file by reg import path\to\my.reg PS. runas is not a solution as ...
0
votes
1answer
217 views

how do I force echo on for a batch file without editing the file?

I'm trying to figure out what's going wrong inside a microsoft batch file, and I want to preserve the file and environment it runs from as it natively would. How can I force echo to stay on so I can ...
5
votes
3answers
2k views

Creating a folder from first 5 characters of filename in a batch file

Here's what I have: C:\test\12345-test1.txt C:\test\23456-test2.txt C:\test\44444-test3.doc I would like to have the script read the first 5 digits from the file, create a folder with those digits, ...
2
votes
1answer
104 views

Is there any way to send messages from the command line in Vista?

I was doing some tutorials on batch scripting when I came across a command prompt messenger tutorial that explained how to message someone directly from their computer. I followed the tutorial and ...
0
votes
0answers
207 views

CScript Terminates before completing task

I am using the below with mods but ziping several Gb of info the last command is Wscript.sleep 2000. I have extended this to 20,000 and 200,000 but I use the script vor various diferent sizes. Is ...
2
votes
4answers
516 views

Hide command prompt containing open process without killing the process

I'm running a server from a command prompt. I don't want the command prompt to be visible because other people in my house keep closing it, which shuts down the server. I need some extra scripting to ...
2
votes
3answers
694 views

What kind of window's batch file allows zipping of ftp files?

What commands should I use to transfer a file via FTP and then compress the files in a backup directory with a filename containing the date/time for reference? I'd prefer to use batch scripting. The ...
0
votes
0answers
227 views

Windows Batch File that zips files from ftp location? [duplicate]

Possible Duplicate: What kind of window's batch file allows zipping of ftp files? Basically I want to keep backups of my xbmc files on my xbox, that is on the home network. I already ...
1
vote
2answers
5k views

How do I make a batch file that will automatically press a key?

I want to create a simple batch file that will press a key automatically so that my computer won't automatically shut down after a long time of being away from the keyboard. Is that possible? My ...
1
vote
8answers
8k views

How do I rename a bunch of files in the Command Prompt?

I have a problem with filenames. The stupid camera I am using resets the autonumber sequence every so often, and therefore I am getting tons of conflicts if I try and put lots of photos in a single ...
1
vote
0answers
451 views

How can I create a VPN connection via a startup script?

I am trying to deploy a VPN connection to all laptops on my Domain via the startup script. It has to be done at startup and not login as the connection has to be available to all users and they don't ...
0
votes
3answers
348 views

Trying to copy only files with three-char name, but this is copying anything smaller

I'm using 'copy' in a console window in Windows XP Pro (So I'm using DOS commands basically) I have files with three characters plus an extension and files with two chars plus an extension. I have ...
3
votes
1answer
2k views

How can I batch/mass create users for a Filezilla FTP server?

I recently inherited two FTP servers; both systems run Filezilla Server. One has a small user-base so creating users is a small task. The other is huge and needs to have 300+ users created. I estimate ...
3
votes
1answer
391 views

Running batch file in notification area

Is there any simple code that will make my batch file process, when run, to go to the notification area rather than the taskbar?
1
vote
0answers
126 views

EditPad Pro saves Python files as Batch file output ()

I am using EditPad Pro and my file type is set to Python. EditPad is great and I like it but recently I was trying to update Google App Engine and I got an error during installation saying that my ...
1
vote
1answer
771 views

Restarting server with bat file

I'm trying to make a simple bat file that restarts a server. It looks like this: shutdown -r -f -t 60 But all it does is loop inside the cmd window, printing the command > new line > priting the ...
2
votes
4answers
3k views

Batch file to backup and change environment variables

How do I write a batch file that backs up and restores the environment variables. After that, I want to set some of the variables and if something goes wrong, I can rollback the changes with this ...
2
votes
3answers
3k views

Batch detect Adobe Reader version on multiple computers

I want to scan for and build a list of versions of Adobe Reader installed on computers at one site in a domain. I'm using a demo of Shavlik Netchk (commercial software) which works well, but I'm ...
3
votes
1answer
184 views

how to automate a batch script

I would like to run a batch script at 5:00pm every day. How to do that? Usually QA people automate their test reports every night for regression and BVT test for example. Has anyone any insight into ...
0
votes
1answer
434 views

Backup and restore cookies in Firefox [duplicate]

Possible Duplicate: Where are cookies of Firefox stored in windows? How would I go about backing up and restoring cookie files for Firefox on an Windows XP install (EDIT: within a batch ...
5
votes
3answers
4k views

Windows 7 batch file: Why are these IF blocks keeping me from assigning variables to a value?

Here's the broken batch file: @echo off if prod==prod ( if xps==xps ( set i1=prodxpsi1 set i2=prodxpsi2 set e1=prodxpse1 set e2=prodxpse2 ) else ( set ...
5
votes
3answers
249 views

Arrange JPG images based on JPG compression/quality

I have been looking for a way to arrange JPG images based on the quality/compression level of the images. I want to do this so that I could select only those images which has less compression (let’s ...
2
votes
6answers
2k views

How can I find out the actual path to an EXE or BAT file?

If I have a long and involved PATH and I type the name of some command, how do I find out where the EXE or BAT file actually lives. I thought TRUENAME did this but it's gone from XP and I'm not sure ...
3
votes
1answer
3k views

Can you send function key commands to DOS from a batch file?

I am new to batch files and I need to write one for a program that runs in DOS. One of the questions on the prompt requires a function key command (i.e. F1, F2, etc). I've read an article that says ...
2
votes
1answer
465 views

How can I get the image dimensions of a TARGA file through a batch script?

Does anyone know of a command/hack/anything that will give me the dimensions of a TARGA image file in Windows XP? So far my searches have only turned up either how to resize an image through a batch ...
1
vote
1answer
3k views

How can I loop through all sub folder of FolderA and execute o.bat in each when I execute a.bat?

How can I loop through all sub folders of FolderA and execute o.bat in each when I execute a.bat? /FolderA/a.bat /FolderA/FolderB/o.bat /FolderA/FolderC/o.bat /FolderA/FolderD/o.bat
1
vote
1answer
536 views

Run a .bat file without typing the extension

I have a .bat file called whois.bat. It accepts one argument which is a userid. From the 'Run' dialog box, I want to be able to type 'whois 99999' instead of 'whois.bat 99999'. The file is located ...
4
votes
3answers
899 views

Why does my batch script not run all lines?

I want to create a batch script that will run axis wsdl2java.bat for multiple WSDLs. When I create a batch script with just this code: wsdl2java.bat wsdl2java.bat it would run wsdl2java.bat only ...
6
votes
6answers
6k views

Temporarily change directory for single batch-file command

In shell-scripting if I need to run a command from a directory I can us a subshell to ensure I return to the original context: (cd temporary/new/directory ; command) # now I am still in original ...
0
votes
1answer
187 views

How to copy file from current location to C:\ using cmd

How to make script file that copies MyFile.exe from the current location to C:\?
0
votes
1answer
535 views

running batch file to xcopy files across workgroup

I run a Windows workgroup as my home network. My Server 2008 box executes backup batch files using xcopy via Task Scheduler. The backup drives are attached to the Server. The local one works fine. ...
1
vote
2answers
301 views

overwriting specific files in a directory tree recursively

I would like to overwrite files in a directory tree, recursively. The ones I would like to overwrite match the filename "x_alpha*.png" and have a size exactly 456 bytes. Is there any way to search ...
2
votes
3answers
12k views

How to loop through folders and rename extensions in a batch file?

Selecting a single folder I could run ren *.jpeg *.png I have multiple folders. I want to create a batch file that will loop through all the folders and will rename the files within it. For ...
3
votes
1answer
6k views

Batch File that copies the first 2 lines of a text file into another text file

I have a text file A.txt Pinging [xx.xx.xx.xx] with 32 bytes of data: Request timed out. Ping statistics for xx.xx.xx.xx: Packets: Sent = 1, Received = 0, Lost = 1 (100% loss) I would like to ...
1
vote
2answers
28k views

Batch file to write ping results to a text file

I know this is a variation of an already asked question but after research and several failed attempts I think I need some help. I would like to ping two websites repeatedly and record the time and ...
2
votes
2answers
4k views

Running a powershell script using a batch file (.bat)

Currently this is my path for launching VMware vSphere PowerCLI command prompt. I wish to run my sample.ps1 script automatically using a batch file. How can I incoporate sample.ps1 into this path and ...
1
vote
1answer
984 views

using “at” command in command line to create repeatable tasks

i did get answer about this question, about 2 years ago: Running bat file using Windows scheduler but now i want to use the same command to create a task that will run every half an hour. how can it ...
3
votes
2answers
1k views

Automatically accept Windows Logo testing?

I am trying to upgrade a printer driver remotely and have prepared a batch file for this. The only problem is that when I'm installing the drivers I get a popup in which I need to press "Continue ...