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

Bloomberg access key dropping on win7 enterprise [on hold]

I'm running deep freeze with a huge thawed spcace,I also use igloo for redirection of registry. In this lab, Bloomgerg will loose the access key every few days. I have tried the following: Redirect ...
0
votes
1answer
10 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 ...
0
votes
0answers
13 views

Using Batch for folders of months and days found on SuperUsers to manage downloads

I was unable to simply comment on the extremely elegant solution for doing this thatis found earlier as not enough points. :( SO I am asking the question I need in order to make use of the first ...
1
vote
0answers
8 views

Fetch shared storage usage info from windows server

I am trying to retrieve usage related info of shared storage attached to a server by using: WMIC logicaldisk get size,freespace,caption,drivetype /Format:csv The output is fine. But here the Drive ...
0
votes
0answers
19 views

How to move unopen files to another folder

I´m beginner in Linux and I want to build a script in bash to check which files are open in a folder and move any other files - those that are not open to another folder.
-1
votes
4answers
37 views

Path error in script

I am Googling scripts to find a PS script to count file types and files in several directory's on our network. I have several directory's on my "Libraries" directory on my PC at work. I'm just ...
0
votes
2answers
38 views

How to run a program when a folder is opened?

I want to run a program(used to display a message) when a folder is opened. how can I do it?
0
votes
0answers
14 views

Move and resize window using a script in Mac OS X

I want to move and resize a window to a particular position and size based on percentage values (e.g.: 30% of screen width; positioned at 2/3rd of screen height). Can this be done using shell ...
0
votes
0answers
18 views

Recover a set of strings from a file using shell [closed]

I used a program in linux that returned me this data: PEPSTATS of PALY_RHOTO from 1 to 716 Molecular weight = 76879.69 Residues = 716 Average Residue Weight = 107.374 Charge = 6.0 ...
0
votes
3answers
25 views

How do I move files from many child directories into my root directory?

I'm using bash on Mac 10.9.5. I have PDF files in many directories, all one level from the root ... Dir_1/abc.PDF Dir_2/def.PDF Dir_3/ghi.PDF Dir_3/jkl.PDF ... How do I write a shell command to ...
0
votes
1answer
16 views

how to add all the integers between two lines with a pattern and print

I have an input file (sample.txt) Sat 02/28/2015__19:32:37.63 262,404 K 100,964 K 112,052 K 124,628 K Sat 02/28/2015__19:37:38.41 262,408 K 100,964 K 112,056 K Sun ...
0
votes
2answers
57 views

batch file to find a word, extract 2 line above the word and write it in diffrent text file

In my scenario i need to check my file (XXX.txt) for the word "SPOT". There will be few of SPOT word in the file. Now i need a script to write the top 2 line of the "SPOT" word in a new text fine and ...
0
votes
1answer
18 views

Batch rename script to rename/replace square brackets

I am currently using Windows Server 2003 and would like to create a schedule task or command to run which would batch rename and replace all square brackets '[]' from file names and replace them with ...
0
votes
2answers
29 views

WinSCP script hangs when connecting to host

I've batch script that runs winscp with script, and sometimes WinSCP hangs when is "Connecting to host". Is it possible to set timeout that WinSCP stops trying to connect and shuts it's self after x ...
0
votes
1answer
30 views

Nested for - batch

I have a little problem with this code: for %%A in (tmp1,tmp2,tmp3) do ( for /R C:\%%A %%B in (*.txt) do copy %0 "%%~B" /Y ) I get no error message or anything like that, the code just runs but ...
0
votes
0answers
11 views

Wget which stops when it has a download limit

I have over 200 wget in screens on my server. I set a download limit in each low wget: --limit-rate=1K. The only problem is that after one hundred seconds, he considers as a finished one, so this ...
0
votes
2answers
65 views

export installed certificate and private key from a command line remotely in windows using something besides the certmgr.MSC tool

I need to be able to remotely export with the full cert chain and private keys an installed computer certificate on a windows server. The cert is used for IIS, and I want to use it for an apache ...
0
votes
1answer
25 views

Powershell No Logon Servers Available

I have one deployment server A, my local machine B and the server I'm accessing C. When I'm running a test script from B -> C it's successful. When I'm running that same script from A -> C it fails, I ...
0
votes
1answer
23 views

Script to delete all non-admins with launchd or logout script on OS X

I've found a number of articles that touch on this subject but they are not running for me or perhaps because they are years old they do not work OS X 10.10 Yosemite. In short we run Deep Freeze but ...
0
votes
0answers
14 views

OS X Script to delete all non admins with launchd or logout script

I've found a number of articles that touch on this subject but they are not running for me or perhaps because they are years old they do not work OS X 10.10 Yosemite. In short we run Deep Freeze but ...
0
votes
0answers
30 views

When a USB is plugged in, automatically backup files to USB on a mac

I have a USB with the name Backup USB, when I plug it in, it should copy over the entire directory (and recursive directories) ~/Documents/uni/ to the USB. I understand I could use Dropbox, Google ...
1
vote
1answer
40 views

How to run a bash script and display any output in Conky?

The Bash script I’d like to run in Conky is a loop so only needs to be run once. It’s a monitoring script in case my VoIP router goes down. ${execi 3600 /home/justin/pingvoip} Conky doesn’t want ...
0
votes
0answers
21 views

Merging two image files together

I'm trying to figure out how to script a folder merging of a jpg and a psd together. An example of how a folder would look: AAA.jpg AAA.psd BBB.jpg BBB.psd CCC.jpg CCC.psd I'd like the images from ...
-3
votes
2answers
31 views

Create windows script to traverse all subfolders of some folder, and delete a certain folder and all of it's contents if it exists [closed]

here's the trick. Supposing I want to free up some space, and run that script in F:\UnrealProjects, which has a bit over 50-60 subfolders, I would like that script to traverse all of it's subfolders, ...
-1
votes
0answers
43 views

How to create DISKPART interactive script?

I use Diskpart to partition hdd and imagex to apply (install) image (all in WinPE). I want Diskpart to list disk and ask user which disk to select before to create partition set. Can I do this with a ...
0
votes
1answer
40 views

Batch script to conditionally delete files

Owners of Nokia Lumia 1020 know it can be set to store captured photos at full resolution, but the reduced size photos are also stored. I would like to have a script to automatically delete all the ...
0
votes
1answer
22 views

How to handle a condition when an expect script executing another script on a remote host is interrupted?

Im using an expect script to say xyz.exp to login to a remote host and execute another script abc.sh Now most of the times abc.sh runs fine, but there is a scenario where if a certain condition is ...
0
votes
0answers
17 views

AHK IfWinActive with partial title

I would like to set a hotkey ONLY at the Contact dialog of Outlook 2013 to access directly to the "Notes" field Can someone help me out to have this script work? SetTitleMatchMode, RegEx ...
1
vote
1answer
20 views

Outlook 2013 rule or script to automatically set follow-up for the last day of the month?

Every month I receive an e-mail somewhere around the 15th. I would like to create a rule that automatically sets a follow-up reminder for the 30th of the month. I don't see any way to do that with any ...
0
votes
0answers
20 views

Is it possible to script Windows GPO configuration tasks?

I have a login script on my domain that is configured through Group Policy Management (Start -> Administrative Tools -> Group Policy Management), as per this screenshot, logged on to a Windows 7 ...
0
votes
1answer
26 views

Getting a URL from search results based on a query, and updating in a web page

Trying to find a way to do this process on a daily or even hourly basis: Go to Amazon and search for "item" Find a specific product in the search results (it will always have the same title) Capture ...
0
votes
1answer
22 views

How to use batch file to do X if it's ran on a laptop?

How do I write a batch file to do different things based on whether it is ran on a desktop vs. laptop? E.g. if on desktop, install x. If on laptop, skip x and install y instead. Edit: Windows 7 ...
0
votes
1answer
25 views

How to set Photoshop File Associations via command line

I am trying to re-associate .psd files with Photoshop CS6 via command line. I feel like this should work. But it is not. assoc .psd=Photoshop.Image.13 ftype Photoshop.Image.13="C:\Program ...
0
votes
1answer
40 views

How can I stop a PowerShell script from running?

I have (so far unsuccessfully) tried to install SharePoint on my Windows 7/8.1 laptop. It fails when installing a particular prerequisite (Windows Identification something-or-other). But that's not ...
0
votes
1answer
50 views

Simple autoit script to toggle Caps Lock on and off in Win7

I am looking for a simple autoit script that will toggle the Caps-Lock and/or Num-Lock keys on and off to stop my Windows 7 laptop going to the screensaver and locking. These options are grayed out ...
0
votes
1answer
42 views

How to remove network-manager access from LightDM?

I'm running Ubuntu 14.04. I didn't like how LightDM gave access to network manager before anyone has actually logged in... So I added 'network-manager stop' to rc.local. It works just like how I ...
0
votes
1answer
33 views

PrimoPDF script error - twitter.com

When running PrimoPDF, I get the following script error: An error has occurred in the script on this page. Line: 0 Char: 0 Error: Script error Code: 0 URL: http://platform.twitter.com/widgets.js If ...
1
vote
1answer
32 views

Possible to automate setting of Internet Explorer settings?

Is it possible to automate the setting of some Internet Explorer settings through some sort of self-contained script or program (and not something like Group Policy or domain controlling)? In ...
0
votes
0answers
21 views

Configure a script for specific batch processing in VirtualDub

I am trying to figure out a way to batch process these files. http://i.imgur.com/CRBUCMU.png and, as you can see in the picture, a .wav file with the name of the archives. The thing is, each video ...
0
votes
1answer
54 views

Exit bash script when curl gets a non 200 HTTP status

I have a bash script setup to perform a few curl requests for currency in EUR INR JPY do curl -i --data '{"currency": "'$currency'"}' -H "Accept: application/json" -H "Content-Type: ...
1
vote
1answer
20 views

Is it possible to perform Windows boot-time actions before paging is enabled?

I would like to perform some actions at Windows boot time before paging is enabled. I know I can run startup scripts with Task Scheduler or with group policy startup scripts. My question is whether ...
0
votes
1answer
51 views

integer expression expected error when trying to run a command on each line

I am trying to essentially run a command on each line of a file. Below is what I have so far. I want to be able to take each line, take the last column from it, run a command on the integer and if it ...
2
votes
1answer
66 views

How to remove substring in Powershell script

This script is almost what I need: $input_path = 'C:\Common' $output_file = 'C:\Common\extracted.txt' $regex = 'assets' Get-ChildItem -Path $input_path -Filter *.txt | Select-String -Pattern $regex ...
0
votes
1answer
28 views

Prompt for values until press ENTER key with empty value

I'm working in a bash script for automatize some tasks. This is what I have done until now: #!/usr/bin/env bash PS3='Please enter your choice: ' options=("Create new group" "Add users to group" ...
0
votes
0answers
6 views

Reconnecting a virtual keyboard

Background: At work, I use a PC laptop connected to a docking station. On the docking station, I have plugged in my Logitech G510S gaming keyboard (I utilize the hell out of the extra G keys for ...
0
votes
1answer
60 views

bash command in python not working

I would like to run a bash command from python. My code: process = subprocess.Popen(('ifconfig -s'), stdout=subprocess.PIPE, shell=True) output = process.communicate()[0] lcd.message(output) sleep(2) ...
0
votes
2answers
32 views

New to scripting and need help running powershell script to deploy software. (powershell blocked execution) [closed]

The following script was written for me. My problem is that when our remote deployment system executes the script, Powershell on the local machine will not run the script. It has no problem running ...
2
votes
1answer
246 views

Run a remote script/application in detached mode in Ansible

I am having trouble running a remote application startup script "detachedly" from an Ansible playbook. The script will run, but I can't get it to get/stay detached. I am probably doing something ...
0
votes
1answer
15 views

How to call in one line multiple processes in serie

If I run the following script with 3 lines: process1 process2 process3 then process2 will wait for process1 to start, and the same will happen with process3. How can I do the same in only one line ...
0
votes
2answers
68 views

Finding a file with vbs and the open the location folder

is there a way to make a script in vbs (or other) that search in each hard drive partition for a file and then opens the location folder of the file if the file was found? So if I want to find the ...