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
0answers
7 views

How can I Embed my password with script

I have a requirement that I must run a script(with administratiev priviledge) during one of my Guest user startup.But I dont want to prompt my user for any password.In my case I'm ok with leaving my ...
3
votes
4answers
300 views

On Linux or Windows, how do I find the path for all mp3s that are the only mp3 in that directory?

I have a Music folder and the contents look like this: Music     -ArtistA ...
0
votes
0answers
28 views

CMD - Script for checking machine-type automatically

I work at a school and a lot of my work consists of updating, configuring and reformatting computers. I have created a script to do most of the work, but among other things, Ii still have to choose ...
0
votes
2answers
29 views

Batch file, script or shortcut to delete the most recent file in a specified folder

anyone know how to make a batch file or script or some other simple thing like a shortcut that calls some exe to do the following: I want to click on something (batch file, script or shortcut) that ...
0
votes
2answers
16 views

Update a sqlite database while select into a while loop

There is a bash script that will do "some magic"™ to files which will be referenced to a sqlite database and after doing "some magic"™ the database should be updated. Here are the simplified code ...
0
votes
0answers
14 views

Script output from Curses program like mtop

I'm trying to write some automated scripts to store things like cpu usage etc. In 'top' there is a batch mode, so I can output this fine. In a program like mtop, where it uses 'Curses' and no batch ...
1
vote
1answer
33 views

How to use linux bash “sort” command in a portable script?

I am writing a bash script and I want to make it portable, to have the same results in the other computers. From this question I learned the system settings, like language settings and possibly other ...
0
votes
2answers
18 views

CMD Line executable of PUTTY calling a script

I have been trying to automate a telnet process using a script of sorts. Whenever I get a hint, it points to PUTTY. I have downloaded PUTTY and the derivatives thereof, (plink.exe) to get my script ...
3
votes
1answer
16 views

How can I automate some simple steps within the GIMP?

I'm trying to use GIMP to automate 3 actions upon a user defined selection in the currently active image - Grow selection by 2 Add border to selection (width of 2, with feathered edges) Fill the ...
0
votes
0answers
27 views

Test availability of a web page

We have a page that proposes some administrative appointements that are almost impossible to have, because of the irregular and unconstant updates from the site administrators. Once these ...
0
votes
2answers
38 views

Script to disable “Show Characters” in the WIFI network properties

I want to know if it exist a script to disable the "Show Characters" check box in the WIFI network properties. I know it is possible to do it manually, but given that we have a lot of computer to ...
0
votes
1answer
25 views

MEncoder & Youtube-upload Scripts retry if they fail

I have a script that encodes a video every day (cron job) and this video is uploaded to youtube just after its creation. Although sometimes these scripts fail. How can i make the script to retry ...
0
votes
0answers
6 views

Equivalent of apt urgency flag in yum changelog?

I develop a cross distribution package manager, and i want to get the urgency of all updates on APT et YUM based distributions. With APT, it's simple, I have to fetch the changelog with apt-get ...
0
votes
0answers
14 views

Adding more than one image as album art to mp3 via command line

I want to add two images (front and back cover) to my converted mp3s. At this time I convert all my WAVs with lame, then I convert the ID3 tag version from 2.3 to 2.4 via eyeD3 and then I will add two ...
0
votes
1answer
51 views

Using Get-ChildItem but only look at the 2nd level down

This is probably really simple but I can't seem to find the answer. I'm looking for a way to only look in the second level down of a folder for a file. i.e. C:\Data C:\Data\Level1 ...
0
votes
1answer
30 views

Running at close to 100 cpu

So I have a python script that is really pushing the limits on concurrency. When the script is running, the cpu load of my computer is close to 100% at all times. Can this harm my computer? To be ...
1
vote
1answer
39 views

Script to scan through several directories, look for a file and copy it to a new name.

Hopefully someone can help me out here. I need to clean up some data on a regular interval but short of doing it manually I haven't come up with a good solution. Here is the flow that I go through ...
4
votes
2answers
49 views

How to invoke actions from an executable in PowerShell?

I am using Powershell 2.0 on Windows 7 SP1, but any answers covering versions 1.0-4.0 would be nice. I know that this command opens Paint via PowerShell: & "C:\Windows\system32\mspaint.exe" ...
0
votes
0answers
7 views

How to set a specific script on NoScript?

I'm on a page where you can't copy anything, and if I turn off scripting permissions, it lets me copy, but if I don't, it doesn't, and I can't do anything else that I need to do. Is there any way to ...
2
votes
1answer
35 views

Creating directory name from file name - strip out non alpha numeric characters and make lower case

I am able to create a directory based on the name of a file. I am running into a wall if the text has spaces or non alpha numeric characters. I would like to strip out those non alpha numeric ...
3
votes
1answer
67 views

Float integer division and setting variable value

I am currently learning the world of bash scripting. I am aware that bash by itself does not do arithmetic with floating integers. I have done some research and have found that there are tools that ...
-1
votes
0answers
8 views

automating synchronized activities in 2 programs with a script

I've never posted here and don't know much at all about Windows programming. I am in an experimental lab where we have a computer running 2 software applications (1) Andor Solis - controls an EM-CCD ...
1
vote
3answers
64 views

What are some good techniques to make your Windows installation something you can throw away and rebuild quickly and easily? [closed]

I don't want to care about my C:\ drive. I want to be able to casually reinstall Windows whenever I want, and be up and running quickly, with the programs, configuration, and data that I like. This ...
0
votes
2answers
29 views

my first linux script won't run

I am trying to write my first linux script (running on chromebook in devmode). Here it is: #!/bin/bash echo 'hello world' This is stored in ~/Downloads/app/run. When I try to run it I get the ...
0
votes
0answers
29 views

MSI Cooler Boost Auto Enable

I have an MSI GE60 Apache-469 that has a button to turn on a "Cooler Boost" mode. This basically cranks the RPMs of the fan up to the max, cooling the laptop considerably. I would like to ...
0
votes
0answers
26 views

Maintain screen session when executing shell script on boot

On Ubuntu 14.04, I have a crontab entry set to run on reboot: @reboot /root/start_server.sh And here's start_server.sh: screen -dmS server bash -c "cd server ; ./run.sh" When the system starts ...
0
votes
0answers
22 views

Change State of Windows Update- Local Group Policy Editor without UI?

In windows server 2012,for this manual step how can i do from script, start>run>gpedit.msc>administrative Components>Windows>Windows update In that 1) Do not Display " Install ...
1
vote
2answers
141 views

Writing only first line of the command output in Windows cmd to a file

I want to modify the command somecommand >> file1.txt in a way that only the first line of the command output be saved to the file. How is it possible, what script is needed?
0
votes
1answer
22 views

How can I automate this task in Notepad++

I've a text file with around 200+ table names. Sample like this T_BCPCOMITEE_EA4 T_BCPEMERSIT_EA4 T_BCPROLE_EA4 T_BDR_AG_EA4 T_BDR_CRITERIA_EA4 I need to take the table name and add a select ...
0
votes
1answer
25 views

Copy (to clipboard) from table (list) in a program on Windows

I'm using a program (Comsol) that computes a formula entered into one cell in a table, and places the result into another cell. The first cell is editable, and I can copy from it to clipboard with ...
1
vote
1answer
60 views

Script to reference another file first

Hi I have a script and in it I need to get the hostnames from IPs that the script generates. The script will generate those IPs into 1 neat file with only 1 column. It is literally just IP address (1 ...
0
votes
1answer
83 views

How to run an infinite loop program on startup on a raspberry pi without halting boot up

I have a shell script: #!/bin/bash while sudo /home/pi/MyCode; do :; done echo Error with MyCode which runs a program in an infinite loop. I want to set up the shell script to run at start-up ...
0
votes
2answers
31 views

How do I concatenate strings from a list in a bash script?

As an example: List="A B C D" for I in $List do OUT=$OUT" -$I" done When I run this the result is: " -A -B -C -D" but want it to be: "-A -B -C -D" How do I concatenate without the ...
2
votes
2answers
67 views

Recursively fixing image file extensions in Linux

I have a bunch of image files from misnamed scans/faxes I need to fix for our Linux users. It turns out we have a bunch of scans that are PNG files that are labled as *.jpg visa versa. Under Windows ...
0
votes
0answers
13 views

AUTOIT3 Recorder is not found

Does anyone know where to find the latest AutoIt recorder? I have downloaded autoit and also SCiTE tool ( autoit script editor), i could not autoit recorder option anywhere? may i know where it was ...
0
votes
0answers
7 views

Exporting paragraph and character styles to jsx

After setting them up in InDesign, how can I export the styles to jsx so I can use them in scripts? Same for master pages, swatches etc. I don't want to have to code them by hand? Would an ...
1
vote
2answers
209 views

Powershell script to list scheduled tasks on remote systems

I want to write a PowerShell script that lists all Scheduled Tasks on remote systems, and includes the user account which will be used to run each task. The local system is running Windows 7, with ...
0
votes
0answers
28 views

Trap a program that has no command line output

I am using the CrashPlan backup tool to backup my home file server. I use an ssh tunnel to interact with the GUI on the remote machine (as detailed here). Currently, I have an alias in my zshrc that ...
0
votes
2answers
24 views

followup: why are shebang files not suid-able?

followup question to http://unix.stackexchange.com/questions/364/allow-setuid-on-shell-scripts . there is a very good answer by Gilles. alas, I do not understand it. nothing described there seems ...
0
votes
0answers
12 views

mac os x wireless association to wpa2-enterprise SSID from the command line

I have a script that connects to a bunch of macbook laptops and makes them associate to a certain SSID. The command that I run is networksetup -setairportnetwork en0 SSID PASSWORD. However If I have a ...
0
votes
0answers
17 views

Keep tclsh open after running script through notepad++

I'm currently writing a tcl script using Notepad++. I've edited the F5 key such C:\TCL\bin\tclsh.exe "$(FULL_CURRENT_PATH)" This will open a tcl shell & run the current script I am writing. I ...
1
vote
0answers
26 views

Delete a file on mouse click(single or double)

I want to delete a file or folder whenever I try to open that file. Is there any script available to do like this? The purpose of this is security. If I double click on a folder it should ask for a ...
0
votes
0answers
34 views

disable chrome task manager? alternatively: prevent extensions from being killed

I have installed the chrome extension "Stayfocusd" which blocks websites for a certain amount of time. However, I have noticed a way to get around this. If you go to Chrome Task Manager and kill the ...
0
votes
1answer
74 views

Windows script to toggle automatic configuration script checkbox without removing any existing string value

I'm trying to create a bat file to toggle the automatic configuration script checkbox in Internet Explorer (see red box in screenshot)...but without removing any existing value in the related textbox ...
0
votes
2answers
60 views

How to delete half of the files in a directory?

A directory has files with names ending 001 to 100. How can you delete 2,4,6,8...100. And can that be written as a script. As soon as the directory becomes week old, this has to run. And after a month ...
0
votes
0answers
14 views

How can I create user defined actions triggered by hotkeys on Mac Os?

I would like to know how can I create actions triggered by hotkeys in a way similar to what can be done with autohotkey on Windows but on Mac. I've read that applications like Karabiner or Keymando ...
0
votes
1answer
14 views

Autostarting a script at boot doesn't recognize the function “function”

I'm trying to get a script containing a function to run just after root autologin on TinyCore 5.3. The script works fine if I launch it from the prompt after login like this ./script.sh But when I add ...
0
votes
1answer
14 views

Scan filename and move to respective folders on a different server

I have a folder (Students located in server A) containing 800 files, each has a unique identifier in the first 6 characters of the filename (e.g.Y9L-01_xxx.xlsx; Y9L-02_xxx.xlsx; Y9L-03_xxx.xlsx ...
0
votes
3answers
44 views

Windows 7 script to change part of a file name

I have a collection of files whose names are in the form car-#######-NNNNNNN.xxx, where ####### is a series of numbers that need to be kept as part of the file name, and xxx is an extension denoting ...
0
votes
0answers
31 views

Windows script to copy text from .txt file, and paste it to another different .txt file

Im working with two applications (.exe). One generates a username:password and puts it in A.txt, one takes text inside a B.txt file and uses that to do its thing. Is there a way I can copy things ...