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)

8
votes
4answers
53k views

How do I set the desktop background on Windows from a script?

On X Windows I had a cool 'silent-alarm" reminder script that would change my root window (background) color to solid red, just for a few seconds a few moments before changing it back. Is there a way ...
0
votes
2answers
2k views

Automatically save documents to a specific folder

I'm doing an internship at a nonprofit organization. There is a share folder setup for employees to save their work to. Unfortunately, many of them forget to save to the share and instead save to ...
1
vote
1answer
344 views

Changing desktop background depending on the time of day via script Windows 8.1

Hello it is my first time using this website so I hope I am not asking the question in wrong format. Anyways, as the title says I have a similar problem to a thread that was answered a while ago that ...
2
votes
1answer
4k views

Outlook 2010 - using a VBA script in a rule

I was following the directions in a great post when I got to the step for selecting the name of the script to run. I have VB code in ThisOutlookSession, but for some reason, the name of the procedure ...
0
votes
0answers
44 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 ...
2
votes
2answers
458 views

Plink, backspace and bell

I'm connecting to a remote SSH linux server from a windows host using plink. This works correctly, I setup a private/public key and can authenticate without any problem. Thing is, when using plink ...
0
votes
3answers
632 views

How to display “Please Wait” while GPO startup script is running?

I have a GPO that calls a batch file as a startup script (Computer Configuration -> Policies -> Windows Settings -> Scripts -> Startup) which takes a moment to finish what it's supposed to ...
0
votes
0answers
35 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
173 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?
1
vote
3answers
22k views

Temporarily Disable Symantec Endpoint Protection?

I would like to temporarily disable Symantec Endpoint Protection. I know that this is done by right clicking the tray icon in the Windows, and then clicking enable/disable. What I would like to do ...
1
vote
2answers
2k views

How do I check if a program's instance is running or not, before running that program?

I am looking for a software (could be as a BAT script) that could check if a program's instance is running or not, before running that program. And if the software / script detects that the program is ...
0
votes
1answer
26 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
35 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
65 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 ...
1
vote
2answers
500 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 ...
7
votes
3answers
3k views

How to extract a complete list of extension types within a directory?

Within a directory, and recursively within it's sub-directories, meaning every directory within a directory is processed, how do I compile a complete list of unique extensions within the directory? ...
0
votes
3answers
55 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
2answers
44 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
79 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
15 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 ...
107
votes
17answers
54k views

How to execute a command whenever a file changes?

I want a quick and simple way to execute a command whenever a file changes. I want something very simple, something I will leave running on a terminal and close it whenever I'm finished working with ...
0
votes
0answers
29 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
25 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
19 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
21 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 ...
0
votes
3answers
3k views

Override mapped drive name using .bat script?

I have the following batch script which is successfully mapping a few of our drives for our users: @echo off net use * /delete /yes net use x: \\192.168.1.52\xrays net use s: \\192.168.1.52\common ...
1
vote
0answers
29 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
58 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
2answers
64 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
47 views

Netcat redirect remote console application

I have a windows interactive command line application ('pianobar', Pandora client) that I'm running on a Win2k8 server that I would like to control remotely, possibly using netcat. I need to be able ...
0
votes
0answers
15 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
84 views

imagemagick draw text word wrapping

I have this script, which writes text to images. echo \\n"List? {y/n}" read cont if [ "$cont" = "y" ] || [ "$cont" = "Y" ] then rm -rf sponsors.txt ls *.jpg *.png *.gif -1 > sponsors2.txt ...
0
votes
1answer
102 views

Rename a dynamic folder in Windows using batch script

C:\Users\xxxx\Downloads\CarepointServiceR2_CarepointServiceR2_**109**_artifacts The Number which is highlighted is dynamically changed each and every day. I have to rename this like ...
0
votes
1answer
16 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
0answers
37 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 ...
0
votes
1answer
67 views

Alter default audio output device from command-line

I have 2 audio output devices: 5.1 Speaker System attached via Toslink Gaming Headset attached via USB Is there a simple way to change which device is the default output device, from the ...
1
vote
2answers
97 views

Match a list of users against /etc/passwd

I have a simple one-column list of users. It comes from the lastlog command. I need to be able to tell if these accounts are disabled and I do not have root access. I can only view with more and ...
0
votes
1answer
21 views

url string stream editing on the fly?

I have a problem with an unnamed 3rd party application (appA). It has the ability to dynamically link to other applications through a dynamic url link you can setup. I'm trying to integrate with ...
0
votes
1answer
311 views

Powershell Script to SFTP New files

I have a script here that SFTP's files from one location to another, the script works fine however I'd like to change the script so that it only copies files that are not already present. Bit of a ...
1
vote
3answers
72 views

Windows command line

I have an exe which produces an output with some parameter, and from that output I want the integer portion to be stored in a file like below: C:\MyExe -param gives an o/p 123abc, so 123 should be ...
1
vote
0answers
109 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 ...
4
votes
4answers
10k views

How can I launch multiple screen sessions from a single bash script?

I've written a script (that doesn't work) that looks something like this: #!/bin/sh screen -dmS "somename" somecommand for i in {0..5}; do screen -dmS "name$i" anothercommand $i done For some ...
0
votes
0answers
22 views

Get image for each letter in font

Is there an automated way to get an image file for every letter inside a font on a Windows 8.1 Pro machine? I have searched for a while but I could not find anything meaningful.
0
votes
0answers
22 views

Script to Open Quicken and update Accounts

I am trying to write a script that will open the Quicken Program and then execute a Shit Command U.. when it finishes updated the accounts, it will close the application. This is what I have. tell ...
1
vote
2answers
151 views

BAT file: Delete all files in directory older than 5 days except one file

I have a directory with many temp files. All files older than 5 days can be deleted except one file 'DoNotDelete.txt'. Therefore I should add an extra argument to my current script: forfiles /p ...
1
vote
2answers
58 views

How can I add, from another operating system, a script for execution on the next Windows boot?

Also known as: adding a script on some Windows startup without booting it I have a multiple operating systems computer, one of them is Windows, and I would like to add some .cmd script to the ...
2
votes
2answers
223 views

Create a script that looks at my memory card, and creates directory's on c:

I am an avid photographer who is tired of creating new directories each time I want to copy the contents of my memory card to my c: drive. Process is: Insert SD card in laptop slot - (Always ...
0
votes
1answer
59 views

How do I build a script shell to send cmd via telnet and log only results?

I would like to make a shell script that can call a range of IPs via telnet, to send a command, and write the result to a file.