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)

2
votes
1answer
189 views

VBScript how to detect hardware plugged in?

I tried searching but I can't seem to be find anything besides USB detection. I want to make a script that detects when the speaker and microphone ports has a device plugged in. Is this possible to ...
-2
votes
0answers
21 views

Detect touch hardware using VBScript [on hold]

I am looking for a way to detect installed touch hardware using VBScript. I have this script ready but waiting for a hardware to be made available for testing. This script looks for a pointing device ...
0
votes
0answers
14 views

how to bring network up at boot time in ubuntu 14.0.4

I am write one shell script which execute on every boot, Script is as below. service lsyncd stop /etc/init.d/networking force-reload ifconfig eth0 > /home/sachin/status.txt old="0.0.0.0"; ...
0
votes
0answers
4 views

Support with Python-docx 0.7.4 or with a script removing spaces in filename and replacing numbers [Mac]

I have written a Python program walking through a folder and opening some ".docx" files using the python-docx 0.7.(http://python-docx.readthedocs.org/en/latest/index.html) library. Now i have some ...
2
votes
0answers
33 views

Script to put Windows 8 to sleep and wake up in 5 seconds

How can I put Windows 8 to sleep(standby) and then wake up in 5 seconds? I know I can use psshutdown -d to sleep, but then how can it wake up on a timer?
0
votes
2answers
26 views

How to view the calling script on Linux [on hold]

I am trying to write a script to help with computer security. I am trying to look for open ports, find the PID, and find what called it. I have it working, where my output looks something like this: ...
0
votes
0answers
12 views

finding out when some file is released by the process, Windows

I was reading about of know what process (or PID) in Windows is using some file with Handle or Process Explorer. My doubt is when?, not who? I want to know when the file is released, and I can ...
0
votes
0answers
33 views

Maintain screen session when executing shell script on boot

Solved: I solved this problem by introducing a delay before executing the script: @reboot sleep 60; /root/start_server.sh On Ubuntu 14.04, I have a crontab entry set to run on reboot: @reboot ...
-2
votes
0answers
19 views

Urgent Script Required [closed]

I want to create a batch script which log to all equipments in my N/W and collect a specific parameter from each and save it to a file , or display at a screen , and i want this script to work ...
1
vote
0answers
56 views

Automatically run executable files with third party program/script in Windows

It is possible to launch an exe file using a third party program through the context menu. My problem is that an exe file might be triggered by a script or by another application on which I don't ...
1
vote
2answers
6k views

Automate file upload in Filezilla using script

D:\Program Files\FileZilla FTP Client\filezilla.exe -c 0/GG/DG/ -a "K:\YY\XXXXX\AAAA\BB\idS.txt" This code doesn't work as it says "PATH NOT FOUND" K:\YY\XXXXX\AAAA\BB\idS.txt However D:\Program ...
3
votes
1answer
4k views

How to add a network (IP) printer using command line or a script?

My company will be deploying a bunch of laptops that will be used during a seminar for people to sign up for services on our website. At the end of the signup process they will need to print out a ...
0
votes
2answers
21 views

Move files and folders to a subfolder

Hi I have a directory where I have many subfolders. In each subfolder, I have a folder called TEST along with other folders and files. Subfolder1>Test, other folders, files Subfolder2>Test, other ...
0
votes
3answers
3k views

How to Find User Name and IP address of users Logged on a Remote System

How can I find user name(of the local machine) of the last logged on user on a remote system. Is there any command or script we can use? I am able to capture IP address of the local machine of the ...
0
votes
0answers
22 views

Displayresolution + clone mode in Windows 8.1 in script at startup?

I want to force a dualscreen system ( 1: Monitor, 2: Projector) to a) set the dual screen clone mode for monitor and projector. b) set the screen resolution of both to 1280x800 This needs to be ...
1
vote
2answers
24 views

Can I automatically restart a pc with a prompt to restart or postpone

What can I do so that I can have a pc restart at a particular time each night and it prompts the user to continue to restart or postpone with a specific time frame?
0
votes
1answer
2k views

List Mapped Drives of All Users

I often have to replicate the mapping of drives of one machine to another. While I know how to easily output the data for the CURRENT user I have not found a way of doing this for others who are not ...
6
votes
5answers
10k views

Delete all Files from Folder and Sub Folders

I'm wanting to remove all files from a folder structure so I'm left with an empty folder structure. Can this be achieved in either Batch or VBS scripting? I have tried a very basic batch command but ...
0
votes
0answers
21 views

Create empty MySQL database via batch file

I have read several answers here but can't see to get the syntax right. The task is to get a batch file that inputs a variable (db) and uses that variable to create an empty MySQL database. My ...
1
vote
1answer
6k views

Batch file script for Enable & disable the “use automatic Configuration Script”

My intention is to create a .bat file that toggles the check box of "use automatic Configuration Script" in Internet Settings. The following is my script @echo OFF setlocal ENABLEEXTENSIONS set ...
0
votes
0answers
22 views

Shell script force stop without waiting for the exit code

I have written a shell script checklick.sh on my CentOS box with the following content: #!/bin/sh # # description: check link through rtmpdump # . /etc/rc.d/init.d/functions ...
3
votes
4answers
5k views

Setting ID3 title tag to be equal to MP3 file name

Has anyone got a bash script that will go through a media library and set the id3 title tag of each MP3 file to be equal to the file's name? I'm open to other automated methods too. It can be a GUI ...
-3
votes
0answers
21 views

Windows 7 Local Security Policy [closed]

I need to write a script to change the Local Security Policy of a computer fast. The problem is that I don't know what scripting language to use, and how to use it to change the policies. For ...
2
votes
4answers
686 views

Change shortcut targets in bulk?

I have hundreds of shortcuts to websites where the target looks like this: C:\Users\Herb\AppData\Local\Google\Chrome\Application\chrome.exe www.somesite.com/foo I just upgraded to Windows 8, and ...
0
votes
0answers
26 views

How can I make Outlook auto redirect emails to email address in body of email?

I would like to redirect a message received from a specific email to another email address. The email address to which the message will be redirected to will never be the same. I have looked through ...
2
votes
1answer
28 views

Removing AD Group members according to their memberships to certain groups in the same OU

Our AD groups for Websense filtering has been set up with very little flexibility for policy management. There are only two groups for "Permit all" web browsing category. Now I need to create over 20 ...
2
votes
2answers
727 views

How to make computer interface with circuit

I understand that I can build a circuit that will do whatever I like (ex: a simple circuit that will turn on a motor to open the blinds or something), and I can write a program that will automate my ...
6
votes
4answers
23k views

How to disable ipv6 on a specific interface in linux?

Could someone tell me how to disable ipv6 auto-config on a specific network interface in CentOS? The current situation is: A PC has two network adapters eth0 and eth1 that are connecting to the same ...
55
votes
6answers
17k views

What is the difference between executing a bash script and sourcing a bash script?

What is the difference between executing a bash script like A and sourcing a bash script like B? A >./myscript B >source myscript
1
vote
2answers
118 views

How to make a bash script wait and then continue running?

I have an .sh script. I would like to wait 25 minutes and then continue running, NOT repeat. It's something like this: #!/bin/bash /bin/bash ~/path/script.sh I want it to kill a process after ...
2
votes
1answer
299 views

Variable in WinSCP script

I'm asked to automate some SFTP download processes via WinSCP. I'm not familiar with WinSCP scripting. ftprun.cmd: C:\Program Files\WinSCP\winscp.com" /script=D:\testsftp\ftpscript.txt ...
0
votes
1answer
24 views

How can i download .exe file from web and run it automatic

I need to create some script (maybe .bat/.vbs or something else) or something else that will download and open the file on double-click. Can you say how can i do this? Example: I double-click on file ...
3
votes
1answer
53 views

Map a network drive to be used by a service

I am trying to map a network drive (the WD My Cloud HDD) to be used by a service (CrashPlan backup software) in Windows 8, something that I have achieved with this script: net use X: ...
2
votes
0answers
58 views

Unlock PC with Windows Task Scheduler

I need to set up a Scheduled Task to unlock Windows 7 PC at specific time. And second Task, to lock at other specific time. Is this possible by cmd.exe command, or I need to use some third party ...
0
votes
0answers
18 views

How can I make sure program A quits/can not be started if program B is started/is tried started?

I want to be sure that a program A can not run at the same time as program B as they can interfere with each other. I would preferably make a windows script that I can automatically launch at system ...
0
votes
0answers
19 views

Windows Script Host

My batch file runs on my PC, but when I run it on the server, it calls the Windows Script Host (WSH) which seems to hang the process. There are no settings for the WSH. when I kill the WSH my batch ...
1
vote
5answers
599 views

Traverse path up and check/set permissions in shell script - how?

In a given shell script I need to take a known path and check it upwards (to the file system root) for correct permissions. How would I split the path and walk upwards in a shell script (can be bash ...
1
vote
1answer
647 views

Run mono application without terminal window?

Is it possible to run a mono application without having the terminal window open? I am trying to run KeePass 2.1.9 using mono on OS X Lion, and it does run fine. The problem is that it has the ...
2
votes
1answer
2k views

Install a Teamviewer host silently with custom password

Our company has the custom Teamviewer hosts that we can run silently with the /S switch. The issue is that we can't connect due to it not setting a password that we know. Does anyone have any thoughts ...
2
votes
3answers
419 views

runas domain access?

I want to execute a file on a share but I need to use a domain account to access it. I've tried runas /user:domain\user \\someshare\foo.exe. It prompts for the domain account's password, which I ...
7
votes
6answers
4k views

Best practices to alias the rm command and make it safer

Some time ago I erroneously deleted my home folder because I ran a rm -rf * on the wrong terminal, whose working directory was the home folder! I wish I had an alias for the rm command, but it was ...
3
votes
3answers
2k views

Run python script from Finder rather than edit?

Max OS X. When I double-click on a python script it opens in the default editor. How might I make it so that when I double-click, or choose the script from Applications, it executes from the python ...
1
vote
1answer
4k views

Calling PowerShell functions in another scripts

I have a script with a number of functions (not just functions but also other code). I would like to create another script that uses one of the functions in the main script. Here is a sample of what ...
0
votes
1answer
48 views

Script to download files from SSH Server

Is it possible to create a script that follow the same commands FileZilla executes when connecting to an ssh server? When I login manually using FileZilla I get the following message for the ...
0
votes
2answers
63 views

Parse out specific parameter from python script

I have a chage output that I formatted myself called accounts. It basically has the name of the user listed as a section and then the information below it (which are the parameters). I would like to ...
16
votes
4answers
11k views

Should I put *.sh and *.rb file extensions on all my scripts?

I have a bunch of hand-rolled executable scripts in my $HOME/bin directory. Some are written in bash, some in Ruby. All of them have the shebang line at the top telling the shell what interpreter to ...
0
votes
1answer
3k views

Local group policy logon startup script not executing

This is for Windows 7 I have a .bat and .vbs file in a folder. The .bat runs the .vbs script. In the Local Policy Group editor, under Windows Settings/Scripts I added a reference to the .bat file in ...
0
votes
1answer
43 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 ...
1
vote
2answers
3k views

How to auto commit to my git repository using cron?

I look into a lot of answers about this subject, but something is wrong here, let me explain. I create this script, to make my cron cleaner :) #!/bin/bash cd ...
16
votes
2answers
11k views

zsh with Cygwin

How can I configure zsh to be the default shell under Cygwin?