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
3answers
42k views

How do I change automatic logon via Script or Command Line?

After deploying a Windows 7 image to Stand alone machines we run into the following problem. If we set autologon to off then we have to log in manually and activate Windows and Office - the Keys ...
3
votes
3answers
8k views

WinSCP putting multiple files on SFTP site

With WinSCP 5.2 I wanted to put multiple files with a file extension .pgp on an SFTP site. When I tested my original command line (see below) and it only placed the first *.pgp alphabetical file (D:\a....
5
votes
1answer
538 views

How to create keyboard shortcuts for URLs, with parameters added in?

As part of my job, I frequently have to visit several URLs that have the exact same address, except for one word. So for example, in one day, I'll visit the following sites over and over again: https:...
3
votes
2answers
2k views

Clear the TEMP folder on shutdown

I am following some instructions in More Ways To Speed Up Windows XP to help speed up my computer. One of those was to delete the temp folder on shutdown. Yet after I shutdown and then boot up, the ...
4
votes
0answers
494 views

VPN on-connection scripting

I use a VPN to connect to the office from home. I use Windows XP's built-in VPN support for this. Due to some unfortunate subnet choices, I must run a script to set up some network routes every time ...
2
votes
1answer
2k views

How do I run a SVN post-commit script as root?

I have a SVN repository server that runs under the repository user, and I want to run a script after every post-commit action. I therefore wrote a shell script that runs from the hook after every ...
1
vote
1answer
1k views

How do I sort the “/etc/passwd” UIDs?

I have been banging my head on this little project the past few days and here is how it goes... I need to organize all the UIDs for multiple servers so all users have the same UID in their /etc/...
1
vote
0answers
52 views

Solution for complex unattended installs?

What is the best way to do unattended installs of complex software (for example, advanced security systems such as dogles and/or network call-and-response) in win7? I've been looking at AutoIt, but it ...
0
votes
2answers
82 views

linux: package for specific “command history” on terminal line?

Is there a package I can download for Ubuntu that would allow me to type in,for example, cd [tab key] and then it would go through the recent cd commands I've typed in?
1
vote
2answers
102 views

How can I merge two lists of emails to get rid of duplicates without any programming?

Say that I have two lists of emails, that look something like foo@example.com, john@doe.com, boo@boo.com boo@boo.com, jane@bigcorp.com and I need to put them together into one big list while ...
2
votes
1answer
83 views

Linux copy parameters to other program

I have made a script ocrun param1 param2 that calls another program like oprun param1 .. i would like somehow param3 and all following (parami) to be copied to oprun.. ex: `ocrun param1 ...
0
votes
2answers
6k views

RegEx find and replace with sed, matching group and replacing on condition

Is this possible with sed? I'm actually in iTunes using "Track Name Edit with sed" from Doug's Scripts, and I have a collection of tracks that are titled in one of two ways: Identical string - ...
1
vote
3answers
624 views

Scripts shell recording playback

I hope this makes sense. I use 'scripts' to make copies of my ssh sessions for various reasons. When I access the logs via less, etc, I see this: Script started on Mon 12 Sep 2011 08:59:14 AM CDT ...
2
votes
2answers
289 views

Can there be a script imitating Windows 8 fast boot-up(shut down)?

In my understanding, booting up is just the reverse process used to turned off the pc last time. If you hibernated, you be booted up with reverse hibernation. If you did stand-by, you will get reverse....
2
votes
1answer
523 views

Is it possible to prevent the win7 suspend state while using JDownloader or MiPony using script?

Does anyone know if there is a way to prevent windows 7 to go to suspend while using JDownloader or MiPony? using scripting ? perhaps powercfg command ?
0
votes
2answers
54 views

Maintain bzip2ed directories on Windows

I have a folder that, besides other things, has folders named after dates, e.g. 20110908 20110909 and so forth. Every night, I would like to run a tool that checks for all folders matching that ...
0
votes
1answer
538 views

Outlook Script to Check for Hidden Attachment

I've got an outlook script which shows you the recipient and prompts the user "Are you sure you wish to send this e-mail to XXX?" However, we have an issue with a plugin we use to send secure files ...
2
votes
2answers
2k views

Windows 7 auto-login script

I'm running Windows 7, and I want it to display a password prompt when I lock my screen, as is normal. However, I want to have a script/service that somehow logs me in when it's invoked via an ...
3
votes
2answers
2k views

Set one homepage for all browsers simultaneously

For testing purposes, I would like to set the homepage of all browsers installed on my computer — Internet Explorer, Chrome, Firefox and Safari — to the same page. I'd like to do this all ...
0
votes
1answer
1k views

Script to search for highlighted text

I'm looking for a script (or Launchbar action, or an application) which will take the highlighted text from the front window of any application and send it to my default browser to search in Google. I'...
-13
votes
2answers
25k views

How can I run a web page in task scheduler every day? [duplicate]

Possible Duplicate: How can I open a URL on a schedule in the default browser? Tomorrow I will go holiday and I can't connect to internet for 5 days. In my SO account I have 64 consecutive day ...
1
vote
3answers
2k views

Linux get single bandwidth usage sample

What I want to do is to write a script that gathers some information (like cpu temperature and bandwidth usage) and logs it into a file. I can't figure out how to get a single sample of the current ...
3
votes
1answer
3k views

Can you send function key commands to DOS from a batch file?

I am new to batch files and I need to write one for a program that runs in DOS. One of the questions on the prompt requires a function key command (i.e. F1, F2, etc). I've read an article that says ...
4
votes
1answer
1k views

Using launchd to kill and restart Finder in OS X

I'm trying to use a launchagent on login to kill the Finder, and then re-launch TotalFinder, to automatically apply the colorsidebar mod for OS X 10.7 (the mod can be found here). If I use the ...
9
votes
5answers
13k views

Fastest way to drain battery

I'm using Mac OS X 10.7.1 on a Macbook Core 2 Duo. What's the fastest way of draining the battery without crashing the system and preferable by using some sort of a script?
1
vote
1answer
1k views

How can I open a console window at the specified position of the screen?

I need to start several cmd.exe console applications so that they should be positioned on the screen in a particular order - is it possible to do with a .bat file? I am running Windows 7.
2
votes
1answer
189 views

Can I Enter a Command on More than One Line in a Command Prompt Window or Script?

I have a long command line, and I would like to enter it on several lines. Something like the following (if it were possible): vsdbcmd /a:Deploy /manifest:Database.deploymanifest _ /p:...
1
vote
2answers
1k views

Batch find/replace in text or html files

I have a large collection of html files (thousands), and need to change a single character that wasn't displaying properly on some browsers. Is there a quick and efficient way to do this?
0
votes
2answers
257 views

How can I copy to folder if exists delete source file do not modify destination?

I want to execute a script to compile all pdfs into a single folder. My target folder may have the file already. I want to create a script that searches another set of directories for *.pdf and copy ...
6
votes
2answers
24k views

Synchronize Internet Time in a Windows script?

Is there a way I can synchronize the system clock with an Internet Time server (i.e: time.nist.gov) via command-line? Preferably, this should be something executable via BAT or PowerShell script. ...
12
votes
3answers
11k views

How to execute a script on sleep, hibernate, resume, and shutdown

I keep alot of my classwork documents hosted on dropbox as well as my personal site for remote storage. This helps alot since I switch between an iPad, laptop and desktop, so there are no worries ...
0
votes
1answer
1k views

Script that runs a command with 'exec' doesnt end until 'Enter' is pressed

We have a KSH script that runs a process using exec and hangs. We want to be able to run it automatically and keep it running in background. We tried this: ./myScript.ksh & However this left ...
3
votes
4answers
3k views

In linux how do I to get ' quote ` back-tic through the shell into sed.

In linux how do I to get the ascii decimal/hex/oct code from a char or a ascii char from a decimal/hex/oct code. I see from the gnu sed user manual that I can use the \d# \o# \x# to specify a ...
0
votes
1answer
459 views

monitoring script for window services

I need to monitor some third party software that runs several services on Windows. I simply want to set it up so that I get an email if the service restarts, fails, etc. Is this something that can be ...
1
vote
1answer
868 views

Help with Watch Directory Script

First, I should note that I am pretty new to writing scripts, but I know my way around ubuntu well enough that I don't mind getting my hands dirty... I have a small script, which does a simple ...
0
votes
2answers
506 views

Using sed to replace a *large* number of variables in a file

I have a large number of log files, on a linux box, I need to cleanse sensitive data from before sending to a third party. I have used the below script on previous occasions to perform this task, and ...
2
votes
1answer
670 views

Outlook 2010 - Reopen messages

The goal here is to compensate for the Executive use of Outlook 2010 at my employer. Most of the bosses have developed a work process of opening a plethora of outlook messages and then using said ...
0
votes
1answer
213 views

How to copy file from current location to C:\ using cmd

How to make script file that copies MyFile.exe from the current location to C:\?
0
votes
1answer
187 views

Windows 7 hibernate

I would a script that can be entered as a Start > Run command to put the computer into hibernate mode. I have done this in Windows Vista; I just need the Windows 7 command to start the hibernate ...
2
votes
1answer
3k views

Force 64bit WScript to run .vbs

I'm trying to run a .vbs script under 64Bit. When I run this script manually it will execute properly, but when launched by something else, it will run under 32bit and won't execute properly. Here's ...
0
votes
2answers
462 views

How to create script auto run without choose on Ubuntu?

I create a script and when I execute it, a dialog show for me choose one option: Run in Terminal, Display, Cancel and Run. I want run it automatically without choose option. Anybody know how ?
0
votes
1answer
344 views

How to create script auto run without choose on Ubuntu? [duplicate]

Possible Duplicate: How to create script auto run without choose on Ubuntu? I create a script and when I execute it, a dialog show for me choose one option: Run in Terminal, Display, Cancel ...
3
votes
3answers
4k views

How can I take hundreds of smaller images and create one big tiled image?

I have 251 images that are 128x128 in size; I need to create one big image that includes them all tiled together. The image will be 32128x32128 in size if all goes well (Paint.NET says it will be 3....
1
vote
1answer
1k views

Running Elevated Logon Script

I have to run a powershell script every time a user logs on. This script needs to be run elevated. Is there a way to do this with out prompting the user. I am currently running the script using on ...
3
votes
4answers
9k views

Downloading a RAR file from Mediafire using WGET

Example: http://www.mediafire.com/?tjmjrmtuyco This was what I tried... wget -A rar [-r [-l 1]] <mediafireurl> That is to say, I tried with and without the recursive option. It ends up ...
3
votes
1answer
8k views

How can i compress when I create SQL backup file in a folder?

I use SQL Server Express and I create backup files for all databases every day using Time Scheduling script. One script Like that; BACKUP DATABASE [Jira] TO DISK = N'C:\Backup\Jira.bak' WITH ...
2
votes
1answer
7k views

How to extract the filename extension out of %f in script?

The windows %%f returns the full name of the file as 'filename.ext' e.g. for /r %%f in (*.wav) do echo %%f Is there a way to extract the filename without the extension from %%f?
0
votes
2answers
779 views

Automating tasks in Windows 7

I need some help automating some tasks in XP. Most of them are of console nature. Now in Linux this probably wouldn't be too difficult to pull off but I'm not too acquainted with Windows automation ...
1
vote
1answer
286 views

How to run a command inside a script without specifying the exact location?

So I have a PHP script that is using wget to download some images. It looks something like this: exec('wget -O saveImage.png http://location.of.image'); When I run my script on a different machine, ...
1
vote
0answers
268 views

Using lynx/links/elinks to correctly display a websites Cyrillic characters

Been struggling finding an answer on this topic for a few days now, I"m just curious as to how one would go about forcing either the shell (putty) iself, or the text-browser links to output Cyrillic ...