Text file containing a sequence of commands or program invocations.

learn more… | top users | synonyms (1)

2
votes
0answers
45 views

How to get the PID of the windows cmd I'm in

I want to create a unique directory for the time a process runs (to complete the copy process I described in this question). I've tried %random% but it changes too slowly. Waiting is not a viable ...
2
votes
0answers
177 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 ...
2
votes
0answers
52 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
872 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
24 views

Mkvmerge batch for change default audio

I want to change the default audio of my files but there are too many. How can I do it with cmd or bat file? This is my code for one file: "C:/Program Files/MKVToolNix\mkvmerge.exe" --ui-language ...
1
vote
0answers
33 views

0x1 issue in windows task scheduler

I am running a bat file which will delete the files or folders older than 14 days from the today's date , when i am testing it in local folders it is executing fine, but when i am trying to delete the ...
1
vote
0answers
66 views

Replace / Edit host file with windows BAT

I wish to add and remove some lines in host file within a period of time (Time setting will be done via task schedule job) I can create two BAT file, one for adding new lines and one for removing ...
1
vote
0answers
31 views

How can I reproduce linux's `column -t` command equivalent in windows?

What is the equivalent command for Linux's column command in windows? How can I reproduce column -t in windows? I cant find anything related on windows batch file commands list. any help is greatly ...
1
vote
0answers
94 views

Match lines from a text file (image listing) in SPECIFIED order using batch, JScript (JREPL ?) or VBScript?

The environment is WindowsXP (possibly upgrading to Windows7 soon). I am allowed to run scripts but NOT allowed to install tools. TASK: Output matched lines from a Log.txt file in same order as ...
1
vote
0answers
60 views

MSInfo32 command line switches and Windows 10 issue checking remote PC

I am trying to run MSInfo32 on a list of hostnames using the command line switches: for /F "tokens=*" %%A in (hosts.txt) do ( start /wait msinfo32 /nfo %%A /computer %%A ) It appears to work ...
1
vote
0answers
36 views

Notepad++ custom language how to only highlight if comment keyword has a space

In the custom language editor in Notepad++, I recreated the batch language syntax highlighting, as I saw it as poorly made. My issue is that in making a remark with rem, I cannot have words like ...
1
vote
0answers
29 views

Can I prevent the change of overlay icons?

Background Several programs modifiy the icons in explorere to indicate a state ("synched" etc.) It is a known fact, that Windows (win7, win8, win10?) can only handle a limited amount of such icons ...
1
vote
0answers
30 views

Bat script's remote path not working with “SET Profiles=\\%PC%\C$\Users”

@ECHO OFF :ProfilDeleter SET /P PC=Enter Remote Ip/HostName (for Exit press M): if [%PC%]==[] cls && @echo you should fill && goto ProfilDeleter if %PC%==m goto :Menu if %PC%==M goto ...
1
vote
0answers
34 views

Reliably resolve location of a batch file

A standard construct to get the directory of a batch file is to use %~dp0. However, this returns the wrong directory if the batch file's name is in double quotes. For example, npm generates cmd ...
1
vote
0answers
67 views

Batch file using icacls not executing

I'm reading the users from a file and I try to grant them access to a specific folder, but when I execute the batch file below nothing happens. Can someone please explain me what is wrong? Edit: I'm ...
1
vote
0answers
103 views

How do I keep WZZIP from creating a zip that makes a folder when unzipped?

I'm looking at an automated process (utilizing a "DOS" .BAT file) that creates zip files with a simple command like... wzzip [path][zip file name] [files to be zipped] "[files to be zipped]" ...
1
vote
0answers
1k views

Can't execute remote command using PuTTY/ Plink over SSH

Currently I am trying to run bat files call_putty.bat and call_plink.bat, but it isn't excuting the input commands in -m E:\CREATE_ONT.txt When I remove -m E:\CREATE_ONT.txt, the SSH session is ...
1
vote
0answers
50 views

How can i track client isolation?

My wireless Router client isolation is enabled.Now how can i know that WiFi client is isolated without longing inside the router? Is there any script or command what i run in any local pc and that ...
1
vote
0answers
133 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
263 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
354 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
558 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
40 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
2k 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
468 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
581 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
81 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
378 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
94 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
168 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
475 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
212 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
3k 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
2k 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
620 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
139 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
4 views

How to automate putty commands when connection is through serial port?

Two files are there. I want to run trial .txt cmd in serial port connectivity with a hardware.pls suggest how to automate this. I will use these cmds repetititvely. Batch file cmds below sv.batch ...
0
votes
0answers
4 views

Open XML file as table in Excel from batch file

How do I open a .xml file as a "table" in excel from a batch file...I currently get it to start excel and open the file...but it prompts you to select how to open the xml file...I want it to open as a ...
0
votes
0answers
23 views

batch programming net use redundancy

I am trying to add some redundancy to a mapped shared folder. my .bat file contains the following: net use * /delete /yes net use * \\xxx.xxx.x.1\shared folder /user:user pass /persistent:yes /y ...
0
votes
0answers
18 views

Windows Batchfile

I m looking for a batch code that does the following Job: Delete line 35 to 39 & 43 to 138. The result should stored(Modified) in the same file. I found one such Code by googling. ...
0
votes
0answers
23 views

How can I know that I have reached end of the file(EOF) using batch scripting

I am working on batch scripting. I am struck at the of point of comparing my variable with EOF (end of the file). set "file=abc.csv" for /F "usebackq delims=" %%a in ("%file%") do ( if ...
0
votes
0answers
42 views

using youtube-dl.exe for downloading continious videos

I am using youtube-dl.exe for downloading playlist but after some time it automatically stops and doesnt automatically resume the download and after network connectivity changes does the same below is ...
0
votes
0answers
91 views

Batch File to Set Default Programs Without Invoking the Registry

Our organization has the Chrome policy enabled for setting Chrome as the default browser. This setting is mandatory, and cannot be disabled like many of the other policies we have that are ...
0
votes
0answers
20 views

Batch File Move command to non existent folder

I accidentally executed a move from a file to a folder that doesn't exist. How can I restore my file? It is listed with correct file size but without an extension.
0
votes
0answers
31 views

How to .bat launch a vnc session in windows?

I have a specific vnc session I want to start up: myhost: 5000 Password: *()BS^Y9hub)GS*^&Dt I am using the standalone VNCViewer-5.x.x.exe file right now to start it. vncviewer command does not ...
0
votes
0answers
36 views

Run a batch as domain admin during logon of user using GPO

I am creating an installer command. I have it fine tuned and working well. There is one catch, needing admin privileges to do some folder copies. I'd like to run my batch file as administrator ...
0
votes
0answers
20 views

How to create new folder based on the copied text

it's my first question here on the website. i'm asking about create new folder based on the current copied text. in my work, i'm creating like 100 folder per hour for each file, and each folder must ...
0
votes
0answers
7 views

iMac 10.9.5 directory file names

I have a directory which contains files and folders. The folders contain a single pdf file. Each pdf file is named according to the following convention: DDDDD-LLL-LLLL-L-DDD - [random phrase of ...
0
votes
0answers
21 views

Batch - Schtasks Onstart Repeat Interval

Command I'm using: SCHTASKS /Create /SC ONSTART /TN "TaskName" /TR "path" /RU "user" /RP "pass" /RL HIGHEST I'd like to repeat this task every 10 minutes, which would be doable with the /RI flag, ...
0
votes
0answers
36 views

How to run a task when a event is registered? (Windows XP)

Perhaps my question has already been answered, but I need my script run after Windows register any WiFi connection event. (The bat script reconnect a mapped drive only after there is a wifi ...