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

learn more… | top users | synonyms (1)

2
votes
0answers
43 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
909 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
666 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
30 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
54 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
52 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
119 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
101 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
138 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
6k views

Run a batch file on a remote computer as administrator

I am trying to run a batch file (to install some software) on a remote computer. To do this, I am using PSExec. psexec.exe \\COMPUTER C:\swsetup\install.bat This works fine, apart from some of ...
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
947 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
62 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
306 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
57 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
250 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
92 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
102 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
328 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
162 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
459 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
127 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
7 views

Upload a file to ftp/another Web server with batch

I need to upload a file using batch commands. I can either upload it to an ftp server or another form of Web server (hfs)
0
votes
0answers
17 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
12 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
29 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
21 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
29 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
27 views

Batch File:List all files of a type, rename files, flatten the directory

I am looking for help with a batch file(s) that will allow me to move all files of a particular type (*.PDF's for example) to a new folder. HOWEVER I would like to have features not readily apparent ...
0
votes
0answers
15 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
40 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
23 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
15 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
29 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
33 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
79 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
43 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
41 views

How can I get ConEmu to open more than 30 tabs?

I have a .bat file which opens 100+ consoles, but I need them in new tabs. Problem is, ConEmu has a max of 30 tabs. I can do this with regular cmd, but its 100+ new windows. I'd prefer them in tabs ...
0
votes
0answers
47 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
49 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 ...
0
votes
0answers
121 views

Create VPN connection using batch

Is there a way to make a batch file that creates a VPN connection? I just need it to accept the Internet address and Destination name, and make a VPN based on that. It'd also be great to get the ...
0
votes
0answers
46 views

General-purpose For-Loop Windows batch command with User Input

How can I use as "input" over each file in a directory using a for-loop as "output" in its subfolder? I think the answer of this question will be very helpful, so I will give general-purpose example: ...
0
votes
0answers
21 views

Want to write batch script on the basis of system date and exit code

This is MY first question in this forum, Hope any one of you can fix the issue.. I have one log file containing the pattern as below "abcd.job" (abcd.bat) Started 27/8/2014 5:00:00 AM ...
0
votes
0answers
27 views

command for running script?

I was wondering what command would get the batch file to read a seperate text file and use all of that code in a database.. if that didn't make sense I'll do my best to explain: I have a text file ...
0
votes
0answers
20 views

Start applications on specified screen at startup (Windows 8)

What I would like to do is have all my programs that start on startup to popup on predefined screens. Now, since we configure applications to start on startup by adding a shortcut to the startup ...
0
votes
0answers
40 views

Prefix commands in batch

I am using a batch file to run Grunt with some console customization. I was wondering if there is a way to add grunt and a space to the commands I enter into the console. Here is my batch file: CD ...
0
votes
0answers
69 views

Batch file needed to query a specific location

I am not a coder and would appreciate any assistance. I need a batch file which will query a NAS location and produce an output of the upper level directories (and maybe the second level down). The ...
0
votes
0answers
26 views

Copy multiple files to folders. Use filename

How do I move multiple selected files to folders with using the filename? Any tool or cmd is welcome :) One file a time: press Win + R and type in shell:sendto create a new textfile in this ...