Text file containing a sequence of commands or program invocations.

learn more… | top users | synonyms (1)

2
votes
0answers
45 views

Printing pages to different feeds (pdf) WINDOWS

We are currently sending out letters that print: Letter on letter-head (customized for recipient) Instructions on regular paper (customized for recipient) These letters are all sent automatically ...
2
votes
0answers
1k views

Batch file to move/compress/delete files

I am trying to write a batch script that will run automatically daily to do the following: Move files older than 2 days to from the main directory (Jason) to an archive directory. Zip files in the ...
2
votes
0answers
726 views

Command line switching

I have read through some suggestions but I am just not technical enough to get this I think. I am a CAD designer and each file has 5 files associated with it. I have 3 sets of 5 files, and each set ...
1
vote
0answers
41 views

seach for a word in .txt files and write few line into new .txt file

Please help me to create a script to perform task as per described below. i have 2 files. A.txt and B.txt Content of A.txt as per below ITEM name TICKY title nice coffe drink type DRINK ITEM ...
1
vote
0answers
49 views

How to save Ping record in every single hour for 2 weeks?

how do I save the record ping "in every single hour" for a certain period, for example for 2 weeks, with the format dd / mm / ss, dd / MM / YYYY and beside it is the result of the ping. So we can ...
1
vote
0answers
81 views

Unable to send files over 1 MB via FTP on Windows

I tried to send multiple files via FTP commands using simple batch script. It works fine when the file size is less than 1 MB but when the file is larger than 1 MB I get the following error log. ...
1
vote
0answers
107 views

Batch check if IP is within specific range

I'm trying to make a batch script to get local IP-address of active NIC (could be wireless or local). To get IP adress I have used following line: FOR /F "delims=[] tokens=2" %%a in ('ping -4 ...
1
vote
0answers
128 views

Creating an account creation script to create new users in Windows Server 2008

I need to be able to make an account creation script that will create a new user in the Domain Users group, set its password, roaming profile, and login script. The input will be first name, last ...
1
vote
0answers
202 views

.bat script doesn't work by using window scheduler

i created a .bat script to perform daily folder compression. it is working fine when i double click the .bat file. However, it doesnt work when i include it in window scheduler. Below is the script: ...
1
vote
0answers
256 views

APC Smart-UPS 1000VA - command file won't get executed

I've got this old piece - http://goo.gl/5M37Sc, working reliably so far, but it has one big problem: command file when power is down won't run. Everything seems to be configured correctly, but when ...
1
vote
0answers
35 views

How to open a webpage if it isn't already open, and if it is, switch to it instead?

I am currently executing this command in my batch file "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http://localhost" to open up my page in Internet Explorer after generating it and ...
1
vote
0answers
1k views

Running Batch file from servers network share - using servers local user account

I am trying to create a script that could be run from servers network share and promt me to type servers local username and password as credentials. So, .bat file is located at ...
1
vote
0answers
238 views

.bat file not getting startup

I installed elasticsearch server in my local machine where I don't have administrator access. I try to open the batch file it runs successfully. When I installed the same in a local server with IIS, ...
1
vote
0answers
80 views

How to hide error dialog box in 7zip?

I am using "C:\Program Files\7-Zip\7zG.exe" -y x -pmypassword "D:\Myfile.rar" -o"D:\Extracted Files\" for extracting a file encrypted with password. Now if 'mypassword' is not the correct password ...
1
vote
0answers
371 views

Windows 8 “Insufficient memory” error whilst copying through .bat files

Info: Sys: Windows 8 Pro 64-bit (6.2, Build 9200) (9200.win8_gdr.130531-1504) BIOS: Default System BIOS Processor: Intel(R) Core(TM) i7 CPU ; 960 @ 3.20GHz (8 CPUs), ~3.2GHz Memory: 14336MB RAM ...
1
vote
0answers
69 views

Sox not recognised as a command in W7

I just moved from xp-32bit to W7 64bit and re-installed sox which I use to resample and create spectrogams. The batch-file cd %~dp0 mkdir converted FOR %%A IN (%*) DO sox %%A -n spectrogram -o ...
1
vote
0answers
286 views

How can I modify the BAT file in this post so it will randomly select 1 background contained in a folder containing multiple backgrounds?

Is there a way to modify the bat file from this post here: How do I set the desktop background on Windows from a script? so that it will randomly select 1 background image from a folder containing ...
1
vote
0answers
93 views

How do I add in a shortcut on the shutdown menu to a program?

I would like to add a shortcut to this menu here: Does anyone know how to accomplish this? I have Windows 7 Home Premium 64-bit SP1 (6.1, Build 7601)
1
vote
0answers
126 views

Programmatically uncheck Show Unzipped Files option for Winzip

I am in need of setting the “Show Unzipped Files” under Home > Unzip options to unchecked for the Winzip 16.5 . The default installation of winzip MSI set the “Show Unzipped Files” options as checked ...
1
vote
0answers
369 views

Issue with running Winzip script in batch file through Informatica

I am facing an issue while executing the winzip script through a batch file in Informatica. I have prepared a batch script with below winzip command. FOR %%f IN (%WorkingDirectory%*%FILE_VAR%*.txt) ...
1
vote
0answers
177 views

From within a bash, bat, or powershell script is it possible to get the last IM message sent to you within Lync?

I use Outlook and Lync 2013. I have msys bash installed, and I have a script that runs a while(1) loop that sends Growl notifications whenever an IM is sent (it reads the ugly Lync log files). I'd ...
1
vote
0answers
2k views

How come adding desktop icon with shortcut.exe no longer works?

Here's the code from a batch file: @echo off rem add desktop icon "C:\Program Files\shortcut.exe" /f:"%userprofile%\desktop\Knowledge NoteBook.lnk" /a:c /t:"C:\Program Files\Internet ...
1
vote
0answers
1k views

Is it normal for scheduled task behaviour to differ from running the batch file manually?

I have a windows service that I need to stop and start every 30 minutes using a Windows Scheduled Task. The service itself can be manually stopped via the Services management console (right-click -> ...
1
vote
0answers
504 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 ...
1
vote
0answers
128 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 ...
0
votes
0answers
19 views

Windows Automated Installation. How can I change boot order in WinPE from a batch file?

Trying to complete automated install of windows OS. I have WinPe on a USB which is first in boot order. I have several batch files running automatically in WinPE making partitions etc. as part of the ...
0
votes
0answers
37 views

How to associate batch files with another application rather than default cmd?

I want to associate .bat files with another console emulator, like cmder, so that when executing them they start up with my preferred program. How to do this?
0
votes
0answers
25 views

Command works in C:\ But not in Users

I am working on a backup program before we image users computers and I want to search for certain types of files. for /r /d %a in (*) do @copy "%a\*.png" "%usr%\file\pic" < All It works great ...
0
votes
0answers
38 views

How to improve a batch file

I wrote the following batch file below in order to clean temp files and clear cache. Problem is that when someone downloads this file he gets a notification that this file may harm his/her computer. ...
0
votes
0answers
36 views

Task Scheduler running a bat file that duplicates screen

When you lock a computer on windows 7 your login screen appears on your main display and then on other monitors it is completely black, when your displays are extended. This problem is fixed when you ...
0
votes
0answers
24 views

Email alerts using Blat command

I tried to use below blat command to configure blat in command prompt for sending email alerts. --blat -install SMPT.XXXXX.com NAG@mail.com -but is is showing below message "Blat is not recognized as ...
0
votes
0answers
42 views

My batch files keep instantly closing, and there is no .bat association under FileExts

I am trying to launch a batch executable, but my PC shows no .bat association in the registry. Recently, I started off by simply modding my Star Wars: Battlefront 2 game. Eventually, it asked me to ...
0
votes
0answers
25 views

Send dynamic argument to an application through its shortcut

I am trying to create a shortcut link which will run/open Command Prompt (cmd) as Administrator having present working directory (PWD) set as the supplied folder path. What I have done: Created a ...
0
votes
0answers
35 views

appending folder name to filenames

please help me with this: for a file structure in a parent folder (say "C:\Folder 1") that contains: Folder A\File a.txt Folder B\File b.txt I would like to prefix the folder name to the ...
0
votes
0answers
45 views

Make a batch file close when a program different from the one it starts closes

I need to make a batch file that starts one program, and closes when another closes, but i cant get the batch file to work without starting two instances of name2. When I only use Start /wait, the ...
0
votes
0answers
30 views

Batch conditions and variable

I have a question about variable and batch windows. The main goal is : I have files in directory (pattern 0? with ? a number between 0 and 9). First I create a %%nf.bat (filename of each files) ...
0
votes
0answers
17 views

Add timestamp to file names

On a server running Windows Server 2008 R2, I would like to rename a number of files matching this quasi regexp: "\d+.\d+.\d+_FOO-\d+.xml". Each new file should contain current time "hhmmss" as shown ...
0
votes
0answers
67 views

Batch file can't find specified path when run from excel hyperlink

I have an excel file that has a list of IP addresses and I have linked a batch file that runs a simple ping test and outputs the results to a text log. When I run the file from the network location ...
0
votes
0answers
32 views

Trigger UAC for a command in a batch

If I run in a batch the command: REG ADD HKLM\Software\MyCo /v Data /t REG_BINARY /d fe340ead from a batch I get the error: ERROR: Access is denied. If I select Run as Administrator, it works. ...
0
votes
0answers
94 views

Change default keyboard layout with bash script

I would like to know if there's way to create a bat script which does the following things: Add US-Dvorak as a keyboard on the computer if it's not already there. (Maybe this helps, but we also need ...
0
votes
0answers
58 views

How to switch user rights within Batch file (de-elevation after elevation and back)?

I have a batch file that I need to run as Administrator, but within this batch file I need to run some commands as non-administrator, followed again by admin-commands. admin commands user commands ...
0
votes
0answers
112 views

RAR/ZIP Extract and Delete in Right Click Menu

In WinRAR, is there a way to use something like 'Extract And Delete Zip File' in context menu? I just need this option, it can be whether a batch file or another program that has this in context menu ...
0
votes
0answers
26 views

Losing credentials when adding echo off

I needed to map a drive to another domain and it worked perfectly, here is the batch file. net use W: \\com-p55.test.ad.testdom.com\software$ /USER:domain\username password /PERSISTENT:YES The ...
0
votes
0answers
27 views

Automate the closure/reopening of browser windows

Aim:- To have an internet browser logged in to a live stream and automatically close at a set time, then reopen a new browser window to a different URL also logged in to a live stream. These windows ...
0
votes
0answers
57 views

Batch ren Command - Only Rename Files with This Pattern

There's a program I use that renames some files to a random string on each use. It's annoying, and I can't get it fixed, so I wrote a script to change them back when I'm done using the program. The ...
0
votes
0answers
52 views

Windows 7 adding context menu entry

I followed this tutorial which explains how to lock an unlocked bitLocker drive without restarting explorer. This works perfectly. However, when I click "Lock Drive" in the context menu I get: ...
0
votes
0answers
150 views

Getting output of command and error code with psexec

I'm trying to run a script remotely. What I want is the output (text & error code) of the script. Instead, I am getting D:\BatchScripts\myscript.bat exited on \\my.test.place with error code 0. I ...
0
votes
0answers
69 views

Command to output its backend process

I have an application running in windows that has an option to run a command (UI base). I'm pretty sure that the UI base backend is running in a cmd but I dont know what is the exact bin file. The ...
0
votes
0answers
81 views

Bitsadmin Download Error

I saw a feed referring to downloading via bitsadmin (v.7.5.7601.17514) on Windows 7. I have trouble implementing this myself and continue to get errors when running the code when running from a batch ...
0
votes
0answers
93 views

How to execute batch script in windows right?

According this answer in How do I delete a folder which is nested quite deep and avoid “File name too long”?, I created 1.bat file with following source: @echo off if not (%1)==() cd %1 for /D %%i in ...