Text file containing a sequence of commands or program invocations that does not need user intervention.
0
votes
4answers
400 views
Writing scipt to open multiple applications with a username/password
Is there a way to write and run a script that will enable me to:
Run an app with a username/password
Have that script carry out a few simple shortcut commands (ie connecting to and receiving from ...
0
votes
2answers
338 views
Run batch file on startup NOT LOGON
I want to run a batch file that maps a network drive but all of the solutions I have found run the script in the start-up folder which isn't really what it says it is.
How do I map the drive BEFORE ...
2
votes
4answers
320 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 ...
0
votes
1answer
144 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:\?
2
votes
1answer
1k views
Windows 7 batch files: How to write string to text file without carriage return AND trailing space?
I am trying to have my batch file write a string of text to a text file. At first, the command I was using was writing an extra carriage return to the end of the string, but I found this command that ...
0
votes
2answers
206 views
Copying a folder into multiple folders
I have a folder with some content which I want to copy into 260 folders.
I guess this is doable with a bat-file and a for-loop, but I can't seem to understand how to do it. Anyone keen to help? :)
6
votes
2answers
2k views
Can I set PowerShell as 'default' in Windows 7?
I would like, by default, for PowerShell to be launched instead of Command when, say, running a batch file, or when I "Open Command Window Here", etc.
Any suggestions?
0
votes
2answers
516 views
Checking if a remote Tomcat server is running from Windows?
I am using Windows 7, and I have a remote Linux machine that runs a Java application in Tomcat (on port 8080). Sometimes, the remote machine is up but Tomcat doesn't respond.
How can I code something ...
2
votes
2answers
945 views
How can I set a time-limit on a batch file?
I have a batch file that calls an external program that periodically hangs. What I would like to do is set a time limit on the batch file / CMD prompt such that it automatically closes after a ...
2
votes
1answer
82 views
Batch-file to remove part of a number before passing it to an application
I've been racking my brain trying to get my softphone to dial numbers on web pages. I've gotten the browser to pass the number through to the softphone, but it adds tell:+ to the number and won't call ...
0
votes
1answer
410 views
Run a .bat file upon logoff, windows XP, no domain controller
I have a standalone windows XP machine which is using pGina 1.8.8 to authenticate. Users log in using a single-sign-on ID (from LDAP) and are then logged into windows XP pro. I have a batch file which ...
0
votes
1answer
153 views
Is there a way to have the choice commanand in batch files wait less then a second
Pretty simple [y/n] question. I am making a file that the player moves and the enemies move as the player moves using the choice command but the enemies do not go very fast so can I make it wait less ...
3
votes
1answer
1k 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 ...
0
votes
0answers
37 views
For /F command doesn't output anything to file or command line? [duplicate]
Possible Duplicate:
Windows command FOR /F isn't working?
I have a text file 'dist.txt' and it contains 'dist name,alias' on every line. I basically want to loop through the file and ...
0
votes
3answers
276 views
Which tools bundled with windows can be used to upload a text file to the web?
I have a text file, and I want to post its contents to a webserver. I would like to do it using applications that come bundled with Windows. I don't mind writing a batch script to do it. But I don't ...
0
votes
1answer
3k views
Add registry key via batchfile
I'm trying to create a registry key with a batch file. I really need to be able to do this via a batch rather than a VBscript or .reg file.
So far by using this guide, I've come up with this. but ...
2
votes
1answer
57 views
command line with spaces
I want to do a command line like:
for /F "tokens=4" %%F in ('c:\spaces spaces\filever.exe /A /D D:\Spaces Other\a.dll') do (set VERSION=%%F)
I encounter a spaces problem.
How can I write that ...
3
votes
2answers
1k views
How to extract a complete list of extension types within a directory?
Within a directory, and recursively within it's sub-directories, meaning every directory within a directory is processed, how do I compile a complete list of unique extensions within the directory?
...
0
votes
1answer
95 views
copying files with certain extension and overwriting
I do this often and I've seen similar questions but not quite the same.
I want to copy from z:\foo to c:\bar all .cfm files and overwrite any conflicts. I also want to keep the directory structure ...
1
vote
3answers
189 views
CMD copy command
how can I copy all .png files in my current directory to a folder in my current directory called "src"?
I tried this code:
copy .*.png /src
and it didn't work for me.
5
votes
3answers
697 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, ...
0
votes
2answers
665 views
Windows Batch FINDSTR searching for “” and < >
These two work seperately but I can't get then to work on the same line, and then to redirect to a text file..
FINDSTR "\""" testingbatch.txt > results.txt
FINDSTR "< >" testingbatch.txt ...
4
votes
3answers
334 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 ...
1
vote
2answers
141 views
What is the command to check if a command's results mention OK?
Alright, so I was playing around with changing MTU size and wanted to make a batch file to automatically lower it and then raise it later.
This is probably simple, but I just can't figure it out. ...
0
votes
2answers
2k views
Extract all Zip's in a directory (incl. subfolders) with a .bat file or dos command
I want to extract all .zip's and .rars in a folder and its children
The structure is like this:
MAIN_FOLDER
-A folder
- a.zip
-a.rar
-B folder
- b.zip
...
1
vote
1answer
498 views
Run windows batch file from ssh login - env vars missing
I am trying to run a windows batch file from a ssh login.
I have successfully installed cygwin w/ OpenSSH on the server (windows 2003).
I can log in and run the file, but the file does not run ...
1
vote
1answer
607 views
Batch file in right click menu
I'm making a batch file that is going to encrypt information. I made it so when I right click on the object and click on the "test" button it runs the batch file.
In regedit I added
...
0
votes
1answer
257 views
Script with .vbs (Internet Options\Browsing History\Settings)
I need to create a logon script that changes this option. It can either be a batch file or a .vbs
"Internet Options\Browsing History\Settings\Check for Newer Versions of stored pages"
Anybody have ...
2
votes
1answer
1k views
Windows 7: How to modify what program opens a batch file?
I remember in Windows XP where you could edit file associations to not only change what program would open certain files, but edit individual items in a file's right-click context menu. You could ...
0
votes
1answer
712 views
Batch file - wait or quit if a process running
I have 2 small batch files that change the target location of a junction point (mkref /d), in order to switch between 2 iTunes libraries.
It works well, but I would like it to stop if iTunes is ...
1
vote
1answer
2k views
How to run a .bat file as administrator automatically each time when I start a specific program?
In order to speed up my computer start time I disable the VM services in startup; and those services are mandatory for me to start the VMware Workstation when I need to use it.
So I wrote a simple ...
0
votes
1answer
83 views
How to tell EXIST to look also in the path directories in windows batch file
I'm trying to do this simple thing on windows but it always fail and i think that the cause is that it's not looking in the PATH variable, how should i do?
IF EXIST lessc.cmd (
lessc ...
3
votes
3answers
4k views
Dump contents of a cmd prompt into a file, from a batch file
So, I have this batch file that runs every morning at 7 AM and does some work in a Windows command prompt.
What I need this batch to also do is save the output of the cmd prompt work that was ...
0
votes
1answer
257 views
Extracting file using 7zip is taking too much time
I am trying to extract a zip folder using 7zip from command line.
7z x "%BackupFileDestination%" -o"%ExtractDestinationDir%"
it is taking too much time to do so. Even hanging on few files. Any idea ...
3
votes
1answer
6k views
batch script that grants admin rights and goes through all files and folders
I have this, pretty sure its a little harsh but does the job, gives me all the rights to the files and folders on a drive when run on a drive, now I need help getting it to go into sub directories, so ...
1
vote
2answers
179 views
Having problems writing a list of simple commands in a batch file
I am trying to run a few simple batch commands in one batch.
For that matter each command is a batch command as follows:
rails generate scaffold illness name:string
rails generate scaffold ...
0
votes
1answer
1k views
Using plink to establish a tunnel for the duration of a batch script
I have a batch script that synchronizes data between a local machine and a machine that can be reached over an SSH tunnel. Rather than leaving the tunnel open all the time, I'd like it to start when ...
0
votes
1answer
328 views
batch file execution failing with PostBuildScript plugin of jenkins
I am trying to execute a batch file to copy my files to another server under the "Execute batch or shell script" option of the "PostBuildScript" plugin of Jenkins. These are the commands in my .bat ...
0
votes
1answer
450 views
WinXP SP3: run batch file when system returns from hibernation
I want to run a *.bat file every time system returns/"wakes up" from hibernation (NOT a sleep mode). How can I do that?
System: Win XP SP3.
I would very strongly prefer to solve it without using 3rd ...
2
votes
2answers
347 views
How to compile .bat file using QT Creator
Question: How do I compile a .bat file using QT Creator?
More info: specifically, I am trying to install Windows Image Writer and the download only includes source files. The README.txt tells me to ...
2
votes
2answers
4k views
'C:\Program' is not recognized as an internal or external command
In Win 2003 I execute command
"C:\Program Files\Windows Resource Kits\Tools\robocopy" "q:\SQLBackup" "\\SQLBackups\MyDB" /Z /S /MIR
I am getting an error:
'C:\Program' is not recognized as an ...
2
votes
2answers
2k 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
2answers
4k views
Redirect pipe to a variable in Windows batch file
I want to stop and start a Windows service from a remote PC using the Windows command line, in a batch file.
sc \\192.168.1.1 stop <ServiceName>
rem sc \\192.168.1.1 query <ServiceName> ...
3
votes
1answer
199 views
How do i run app in bat nonblocking?
Lets say i want to do
gcc a.cpp
BUT i dont want to block. I just want to run and continue, like running in the background. How do i do that in a bat file? I'm using windows 7
0
votes
2answers
715 views
Unable to copy files from protected folders
When I try to run the following
copy %HOMEPATH%\"My Documents"\test.txt %CD%
from c:\backupSettings
I get the error:
Access is denied.
0 file(s) copied.
3
votes
2answers
674 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 ...
4
votes
2answers
483 views
Batch file for creating files according to the days in a month
Update
This is not working in my office pc. When i specificy the current month day as only 2. This is an data which it throws:-
How many Days this month: 2 The Month is (Blank) The Day is (Blank)
...
5
votes
3answers
3k views
Starting services in batch file on windows 7
I have a fairly simple batch file which does just one thing - "net start myservice". This batch file gets shortcut-ed in a program group by installer so that users can simply click on the icon and get ...
1
vote
1answer
512 views
How to print multiple html files?
How can I print multiple html files located on web, and not on a local drive?
Something like:
http://www.domain.com/file.html?ID=1
http://www.domain.com/file.html?ID=2
...
5
votes
2answers
783 views
Configure a Windows shortcut to prompt for input
I swear I remember some way in Windows-past to set up a desktop shortcut that would prompt for input and pass that into the command it's running. Specifically, I want to run a batch file that takes a ...

