An automated series of instructions carried out in a specific order, such as a Windows script created to launch a specific program on startup.

learn more… | top users | synonyms (1)

0
votes
2answers
68 views

Windows 7 logoff script?

I've been trying this for a while, to no avail. I read many docs, including: Windows 7 - How to run a script at shutdown but not at logoff https://technet.microsoft.com/en-us/library/cc770300.aspx ...
0
votes
1answer
32 views

How to do this in all subdirectories in parent folder using batch script?

i am total noob for scripting so i need small help with this batch script... Here is script : @ECHO OFF SetLocal EnableDelayedExpansion SET par2_path="C:\PAR2\phpar2.exe" SET par2_redundancy=10 ...
1
vote
1answer
20 views

Monitor SSH login's via slack but hangs on SCP

I'm playing around with some slack integration so that every SSH attempt gets sent to a slack channel The script below works perfectly for SSH attempts but the issue is that when I preform a SCP to ...
0
votes
1answer
28 views

Unix gzip more than one file at once

I have come to the end of my research with unix:> I'm new with unix and its enviroment, so i need your help guys. Long story short, i have a housekeeping script, which runs daily/weekly (it doesnt ...
0
votes
1answer
32 views

How to make videos play more than 2x faster

Youtube has an option for playing videos 2x faster than usual, which I find extremely helpful for learning about various topics. But sometimes even then the video is moving too slow for my liking and ...
0
votes
2answers
43 views

Automate script | Rename a defined list of filename by a defined list of word powershell

All my code: #read list filenames + filter# $listname = Get-ChildItem 'Y:\Users\H\Documents\D\Game Of Throne' -Filter *.bmp #Read list file txt# $line = Get-Content ...
0
votes
1answer
53 views

Bash Script to generate <name> and pass this as command line argument to programm

I have an python script which gets 1 command line argument python arg Now I want a bash-script which: calls python arg & with the argument arg=000 make this x-times so therefore: python ...
0
votes
1answer
60 views

Delete last line always starting with 'TRAILER' from a text file in windows batch script

I want to remove the last line from a text file using a windows batch script. the last line will always be like 'TRAILER|'. How can i achieve that. My .txt file looks like : 1220|6963|TRUCK|5760| ...
0
votes
1answer
103 views

Change the “modified date” of a folders (in possibly powershell)

From time to time, when I force-shutdown a Windows Server 2003 machine (I have no choice), the folders contained in a certain directory all change their 'modified date' to the current date. Luckily, ...
3
votes
3answers
344 views

Script to get images in folder with dimensions printed to a .txt file

As title goes, is there a script for Win 7 to get printed on a .txt file all the images (JPG, PNG, GIF ecc) inside a folder along with "filename" and "pixels dimension"? I've tried with dir on ...
2
votes
2answers
52 views

How to compress multiple files with similar names?

So I've got some 20 000 files that I want to compress and group by following logic: compress every file that have identical characters up to ( also include files that have no ( So the files are ...
0
votes
0answers
100 views

Unzip .gz file in windows batch script using 7zip

I have 7 zip installed on windows machine. I have to extract .gz files into .txt files. I am not able to find a suitable command to do that. I tried below : 7za e ...
-2
votes
1answer
37 views

Windows Scripting: If statement, comparison of two variables is not working

I have this part of the code which is running weird: if !NoOfLines!==!trailer! ( echo Count of records in DFUView interface verified ok. >> %LOG_DIR%\%SCRIPT_NAME%.log ) else ( echo ...
-1
votes
2answers
76 views

How to extract a string from last line in a text file -windows batch script

I have a .txt file in this format 123|abc|23456 234|rsty|68589 890|gfyu|5679 TRAILER|3| How do i extract "3" from the last line enclosed between "TRAILER|" and "3" ? Need help.
0
votes
0answers
30 views

connect to wifi via URL using code

I want to connect my tablet to a wifi that requires user name and password (and maybe a license agreement click) and submit button click that is available over a URL (like one at my school where I ...
0
votes
1answer
40 views

Win 7 - Batch issue, it doesn't like spaces in folder names

You'll have to forgive me (or not) my knowledge of batch programming is fairly rudimentary. I have created a couple of batch files to help launch a game, change a system variable (to move saved games ...
3
votes
2answers
114 views

Helping remote user with Linux by downloading scripts

So I'm an Linux fan and word is spreading. People bring their laptops to me to have a new installation. Now I want to help people easier without requiring them to bring me their laptop. I'm looking ...
0
votes
0answers
15 views

Masking external ip address using cmd or script on windows

I am using Windows and I want to mask my external ip address(not the "local "). using command prompt or some script, as we do in orbot on Android by swiping up in the app. i know about Tor browser ...
1
vote
1answer
55 views

Remove “has stopped working” message windows 8

I want to be able to remove the "has stopped working" message that comes up when a program crashes because I am trying to write a script that automatically opens the program back up if it does crash. ...
0
votes
0answers
152 views

Login script for Asus router to automate the login process to Tikona ISP

I am using Tikona ISP (India) for my internet connection. It uses captive portal for log in process. But after few minutes of inactivity it automatically logs out. I am using Asus router RT-N14UHP. It ...
1
vote
0answers
20 views

AHK script when screen projected to connected screen

How to create a AHK script where depending on the screen situation (ie, if it is projected onto another screen or not) an application is open at a certain area or at another area
2
votes
2answers
3k views

I keep getting unresponsive script error in firefox for jQuery script

Yesterday I started getting unresponsive script errors like 6 times a day. And I know it has something to do with jQuery because I always get this in the error report: Script: ...
0
votes
2answers
65 views

WOL remote Windows pc's at startup

I have five Windows 8.1 pc's all connected together to the same local network. I'd like to automatically switch on my 4 slaves when I power on my Master pc. All the machines are properly set up to ...
-1
votes
1answer
25 views

Scripting sleep and wake up

I have an iMac that when it boots up the screen is all red and fuzzy, but if you put the Mac to sleep and wake it up again the screen is normal. Has anyone had this issue? If so what is it? I am ...
1
vote
1answer
37 views

Is there a way to automate folder optimization type in windows?

In windows 7 and 8, the downloads folder become optimized for pictures after a while, it causes the folder to lag when opened and even after changing that it returns to pictures every now and then. ...
0
votes
1answer
69 views

Remove substring from absolute path windows script

I am new to windows scripts and I have the absolute path like- /bin/debug/test/abc.xyz.dll and I want to remove the file name and get only path like output: /bin/debug/test/. How should I do that?
1
vote
1answer
68 views

Win7 unlock & logout after x minutes

I have been asked to investigate some functionality for a number of shared PCs running Win7 on a local network. Basically people are logging on to the PCs and locking them in the morning and walking ...
-1
votes
1answer
67 views

Batch- file to move all files from one location to another in windows?

what I'm after is a batch file that will move all files from one folder to another, with the view eto schedule this as a task to run twice daily. I know the whole move command etc but appears to be ...
2
votes
1answer
33 views

Linux command/script to find all files in a directory with a 4 digit number <= a specific number

I have a folder containing several other folders, each named in this format: Company XYZ (1999 OneWordDescription) I'm trying to filter out the ones that are marked 1995 or older, so I can move ...
1
vote
1answer
108 views

Script - Lenovo Battery Recall

Problem: LenovoBattery.exe fails when called via batch file. Is there a way to make it work? Details: Lenovo has expanded its voluntary recall of notebook batteries. They request the industry to run ...
0
votes
0answers
27 views

how to log dmidecode results using bash

I have been trying to write a bash script to log dmidecode results in the a log file. Till now, this is how far I got. #!/bin/bash for i in `seq 0 5`; do sudo su <<HERE dmidecode -t $i ...
1
vote
1answer
46 views

Bash odd numbers

I wrote this bash script to print odd numbers, but the code is not working there is something wrong with the if statement. Could someone point out the mistake? for((c=0;c<100;c++)); do if ["$c" % ...
1
vote
1answer
73 views

Open browser window on dual monitors [duplicate]

My client has dual monitors which they use to display two different websites in a public space. They want to be able to hard reboot the system and have it automatically start two browser windows, one ...
1
vote
2answers
122 views

Need to rename many very long file names with variable

My company gets a list of files every day that we need to process and the file names are almost impossible for our system to deal with. Is there a way to rename these files? I am new to any type of ...
0
votes
0answers
15 views

Chrome Keyboard Typing Sequence

I want to create a new shortcut that will run a keyboard script on the page. for example when I do alt-g it will do [tab]+ type-"hi"+ enter.
1
vote
1answer
49 views

Hiding internal work outputs by shell script

I make a shell script that can update a tools. I want that when i run the root@host:# sh script.sh then the output will be Its installing Its done But now my script look like root@host:# sh ...
2
votes
2answers
52 views

How to send rich text to the clipboard from command line?

How can I send html to the clipboard as rich text from a script? My end goal is create a script so I can paste content from a source file into an email, but I want a general answer for pasting into ...
1
vote
1answer
61 views

How to create a script that launches a random video file from the folder

So, this is a weird problem. But basically, my nephew likes watching cartoons on my computer sometimes. And that worked well. OVer time, his cartoon folder grew up. Here's the problem: he wants to ...
1
vote
1answer
34 views

Script for finding out disk number

I have an external hard disk with two partitions. The first one is an UDF partition and the second partition is a Veracrypt partition. Now I want to use a batch script to load the Veracrypt partition ...
0
votes
1answer
25 views

What software can I use to invert txt list IP-ranges? (not a reverse DNS lookup)

This is a blocklist, but I want to have only IP in the list to be allowed. instead of: 1.2.3.5-1.2.10.20 2.2.3.5-3.2.100.20, i need: 0.0.0.0-1.2.3.4 1.2.10.21-2.2.3.4 3.2.100.21-255.255.255.255. ...
1
vote
1answer
104 views

Windows-8 how do I write a script to change the resolution?

I have a yoga 2 pro that comes with a high resolution display (2k I believe). This sometimes causes issues with programs not scaling properly which for the most part I can ignore. However I also ...
1
vote
1answer
71 views

Bash quotes unescaped on command substitution

Can someone explain me why this is working (listing the contents of a directory that has a whitespace in its name): ret="$(ls "my dir")" Shouldn't it rather be interpreted as: ret="$(ls " my dir ...
0
votes
4answers
97 views

Have the command prompt launch an application like Notepad and block until it is closed

I have a Batch script I essentially want it to present the user with a notepad window opened with a configuration file for the user to edit each time they run the script, and I want the Command Prompt ...
0
votes
0answers
91 views

Linux Mint 17.1: Execute script when shutting down or rebooting

Under Linux Mint 17.1, the InSync app slowdown every shut down and reboot actions. If InSync is not running, Linux Mint shuts down is less than 5s, if InSync is running it shuts down in 60s cause ...
0
votes
1answer
64 views

Generate an error log from Powershell

I created a script to assist in mass editing permissions inside an extensive folder structure, based off a list inside a CSV file. The script works as expected, but for several of the folders, I know ...
1
vote
0answers
25 views

How to disable content view in windows explorer

Im trying to find a way to disable content view in windows explorer on windows 7 clients. I found this: ...
1
vote
2answers
75 views

Counting specific words within a batch of Word documents

I need a count of the number of times an acronym (e.g. ‘ABC’) is used in a collection of word documents. The acronym is always three letters and in block caps. All the word documents are contained ...
2
votes
1answer
234 views

Installing GNU Parallel on Cygwin [closed]

Is this possible? I have googled and searched at length and found no answer to this question. How can I install GNU Parallel on Cygwin? I wish to run a command similar to this : Link Thanks.
1
vote
0answers
20 views

Script that search for a string in the ouptput of a command

This may sound a bit complicated but I do not see any other way. I want to create a script that will check after running the command 'cli ha' to search if a certain line contains a string = 'Active' ...
1
vote
3answers
44 views

using tr from coreutils for windows

I have to transform contents of file from \ to \\ on Windows in script. So I got Coreutils and tried to use tr \ \\ < file_in > file_out on Windows CMD, but \ in file_out remainde \ instead of ...