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)

1
vote
1answer
23 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. ...
-1
votes
0answers
12 views

Concert price finder? [on hold]

I just finished writing a simple bash script that grabs concert dates from the web and gives me date and location next I would like to a script that takes a venu and fuzzes(I think that's the term) ...
0
votes
1answer
38 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
43 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
27 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 ...
-1
votes
0answers
18 views

Script or tool to browse several ip-adresses [closed]

I'd like to be able to browse all ip-addresses in a range (say 192.168.x.0). I've used some network discovery tools, but 3 switches don't come up. I'd like something that browses to all 255 addresses ...
0
votes
0answers
17 views

How can I disorganize multiple layers automatically? [closed]

I have an image that is 1000x1000px and have (with the use of a script) sliced it into small layer squares of 20x20px each. Every square fits within a raster of 20x20px. I want to: swap the ...
2
votes
1answer
22 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
47 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
8 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
17 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
34 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
50 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
13 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
27 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 ...
1
vote
2answers
22 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
25 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
28 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
18 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
46 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
votes
0answers
27 views

Using Robocopy to copy files in order, not alphabetically

Do you guys know of a Robocopy switch that will allow me to mirror my Links (Windows 7) in the order I have them on my main machine, to another machine? When I run Robocopy now, all the Links copy ...
1
vote
1answer
57 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
3answers
50 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
29 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
38 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
17 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
60 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 ...
1
vote
1answer
66 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
19 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
18 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 ...
0
votes
1answer
33 views

Look word inside file in directory

I am new at Bash. I have a directory tags with a lot of .txt files with similar names like this [coral/home/tags]$ ls: file1.txt file2.txt file3.txt file4.txt Each .txt file contains information ...
0
votes
1answer
35 views

Google Chrome - Redirect a specific text to a link in the address bar

As a reddit user, I often like to jump into a subreddit and learn something new. However, the amount of subreddits I subscribe to would make it very silly to add all of them to bookmarks on Google ...
0
votes
0answers
75 views

Run script or app at logon for all users on the Mac

I want my Mac to auto-trash some cache-files from Adobe for all the users that log on to the computer. I am really new to this, so I'm sorry if my question is obvious. I have made a script and/or app ...
3
votes
2answers
93 views

How can I make my computer do a repeated series of tasks by a script file on Windows?

When I want to update a web project of mine, I have to do the following tasks all the time: Open cmd.exe. cd into working directory of project. Run localhost command in cmd.exe (~ jekyll s). Launch ...
2
votes
1answer
17 views

Wrapping `time` (and similar keywords) in call from another script

I have a Bash script (let's call it clock) which should work as a wrapper similar to the time keyword in Bash, e.g. clock ls should do something and then run ls. Here is an example of this script: ...
2
votes
3answers
41 views

How can I find what a Windows PC thinks its name is, given its IP?

How can I find out what a remote Windows PC thinks its host name is, given its IP? From Windows cmd.exe or a Linux shell. I'm not interested what a DNS server thinks the host name is for an IP, just ...
0
votes
0answers
18 views

Execute a .sh file from the desktop in intervalls

We've got a bad hoster, that only allows cronjob in 15 min. intervals. However sometimes we get time critical stuff and we need to do it in faster intervals. That said, the hoster allows an execution ...
0
votes
1answer
56 views

Remove Icons from Desktop / Windows 7

New to the site so any advice would be helpful. I am on a computer where the network admin runs some script that continuously puts 2 icons on my desktop. I can delete them and then in a few minutes ...
2
votes
1answer
175 views

How to make a bash script that names files with today's date

I'm trying to make a script to back up my we servers, but I have very limited knowledge with bash scripting. I want the script to name the backup file ht-"today's date". How would I go about doing ...
0
votes
0answers
11 views

Mac - login hook

When opening terminal after reboot and running who command i get <myUserName> console as a single line but running it after a while returns additional additional lines like <myUserName> ...
0
votes
0answers
15 views

Copy from SFTP to local host using Username/ privatekey.ppk using powershell

would you please help me , i need script that copy files from FTP server to local host using only Username and .ppk as a private key , i don't have password. is it possible to do that. Please ...
0
votes
1answer
21 views

Automatic and dynamic click script on windows

I'm in the need of creating a dynamic system which may allow me to auto move the mouse on a Windows client automatically. I've found online the program Autohotkey which may fit my needs, but I need ...
1
vote
0answers
58 views

Send keystrokes to two windows at once

What I want to do: Be able to enter keystrokes while one program is in focus, but also send the same keystrokes to a second program on the other screen. What I have tried: xvkbd - I've tried ...
1
vote
1answer
109 views

Execute script on login Fedora 21

I'm trying to launch a script located in my home directory when I login on Fedora 21. I have tried to make this desktop file in /usr/share/autostart [Desktop Entry] Type=Application Name=Wallpapers ...
0
votes
0answers
27 views

etherwake fails to run when ran by cron

I have a cron job to check if a client is connected to my VPN and then wake up some other computers on my network using etherwake. I have the script running every minute and it is actually running ...
1
vote
1answer
70 views

Need help writing a Powershell script to automate a silent install of Avamar Client on multiple machines

I am writing a Powershell script to automate a silent install of Avamar Client on multiple machines. Here is the script that I have written so far, but it keeps coming up with errors: #Variables ...
0
votes
0answers
20 views

Strang, same simple awk script has different results on different machines

This is the strangest mystery ever -- same simple awk script has different results on different machines. The awk script is really simple: $ cat awk_test.awk BEGIN { troubleshoot = 1 } # GET: ...
1
vote
0answers
41 views

Receive a file using runscript (minicom scripting language)?

With runscript one can script minicom serial line sessions. I try to script the reception of a file transferred with ymodem. Minicom uses external programs for file transmission. I tried runscript's ...
0
votes
1answer
32 views

Parameters with spacebars parsed incorrectly for a powershell script run from a batch file

I have a batch file that runs a powershell script and I need to pass two parameters to the script. In my batch it looks like this: powershell -executionpolicy remotesigned -File "my script.ps1" "my ...
1
vote
0answers
48 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 ...