scripting

Is it possible - using only windows script - to merge a text file and an image?

Our FI trading application generates trade confirms which come out as plain text letters. (.txt) I need these to be programatically overlayed (using only Windows Script) onto headed paper and then copied to a fax out directory. The script will be checking a directory for these files every n minutes. I want to keep the dependency count...

How to Generate File of a determinate Size in Windows?

How is the Best and fastest way to do it? ...

How do you create a computer or scripting language for an application?

Duplicate of: Learning to write a compiler Documentation on creating a programming language Learning Resources on Parsers, Interpreters, and Compilers Suggestions for writing a programming language? Compiler-Programming: What are the most fundamental ingredients? Are there some online resources about compiler principle? and others I'...

PowerShell Script to Get a Directory Total Size

I need to get the size of a directory, recursively. I have to do this every month so I want to make a PowerShell script to do it. How can I do it? ...

Batch File - Into a Variable

Hi guys Havin' problems tryin' to get the string after the : in the following two lines into two seperate variables from the bottom of a text file called file.txt for example Number of files to delete: 27 Total Total size of files to delete: 1,427 KB I just want the 27 in one variable, and the 1,427 in another. These are randomly gen...

Is there a way to redirect stderror to stdout for the duration of a script in Windows?

As a long time UNIX shell scripter / release engineer coming into the Windows environment full time with my latest job, there are some things I inevitably miss. One of them is my trusty old 'exec 2>&1' which in the Bourne shell permently knots together stderr and stdout for the duration of the script, so that logging will capture everyt...

PHP validate youtube script

I have a site that allows users to copy and paste the embeded video script that youtube provides and upload it to a database. I want to be able to check that this script is valid youtube script and not just random text that someone typed in. I believe this can be done with preg match. Any ideas? ...

firefox extension that adds a script to a html page

Hi, I am asking about using javascript to add a script to a html tab in firefox. I'd like to avoid using greasemonkey. Is there a way to do this? Thank you ...

What about script globalization of MicrosoftAjax.js in ASP.NET MVC?

Create an MVC project, and its "Scripts" folder will include MicrosoftAjax.js (release and debug versions). In Visual Web Developer 2008 Express Edition at least, the Scripts folder does not contain any of the Globalization scripts, i.e. the 205 files (e.g. "af-ZA.js") that define and set up '__cultureInfo' for that culture. They are a...

Looking for easy script based gui framework that the output is closed exe

Hello all i need windows ( and linux latter on .. ) GUI framework that is based on scripting language ( doesn't matter which ) that the end result will be compiled native exe ( not relayed on installed script engine ) is there such beast ? ...

Proper way to run a script using cron?

When running a script with cron, any executable called inside must have the full path. I discovered this trying to run wondershaper, when many errors showed when it tried to call tc. So my question is, what's the proper way to overcome this problem? Possible solutions: cd to the executable folder and prepare symbolic links to any othe...

Active Directory - a script to find all users that aren't in a set of groups?

I have a set of 10 AD groups. What I'd like is to programmatically find out which users in the AD domain are NOT members of those 10 groups. There is only one domain. I know it's possible to perform ADO SQL queries in a vbscript but I was wondering (hoping, praying) if someone had a canned script? I suppose a hacky way might be: Dump...

What are you using to script deployments for complex server products?

What are you using to script deployments for complex server products? Imagine we've got some slick new code (or maybe version 42 of slick code) and have ship it. Now, of course we have the basics in place here - databases build and upgrade themselves. We have nice "packages" (zip files) But there is a lot in between "shiny new server" ...

bash script parameters

I need to write a bash script, and would like it to parse unordered parameters of the format: scriptname --param1 <string> --param2 <string> --param3 <date> Is there a simple way to accomplish this, or am I pretty much stuck with $1, $2, $3? ...

How to set an ANT property only if it is unset

Hi, I can't figure out how to set an ANT property on the condition that it has not been set(i.e: it is not defined in the properties file and should automatically default). So far, I only have the following code: <condition property="core.bin" value="../bin"> <isset property="core.bin"/> </condition> But this only seems to work ...

How to write out an email with mutt, grep the file, then execute a command at new email

I am trying to write a series of scripts that will execute other scripts on my server depending upon text from an email that was just received. I am using mutt as a text based email client, but have no idea where to start for this. I am hoping to understand how this works more than just solving the problem, because this project of mine...

How to export wikis from FogBugz 6 to (almost) any other wiki (final destination: Confluence)?

We have a FogBugz 6 installation, with a good deal of wiki content in place. We're transitioning to use Atlassian products (JIRA and Confluence), so we'd like to get that wiki content into Confluence. How would you approach this? Unfortunately, FogBugz doesn't appear to provide any kind of wiki export functionality, and Confluence doe...

How to programatically combine two aac files into one?

I'm looking for a cat for aac music files (the stuff iTunes uses). Use Case: My father in law will not touch computers except for audiobooks he downloads to his iPod. I have taught him some iTunes (Windows) basics, but his library is a mess. It turns out, that iTunes is optimized for listening to podcasts and random songs from your libr...

Excel: How can I display the data from several sheets in one?

I have written a script which creates a complex Excel sheet which contains data from several data sources. The data on each sheet is usually 1-5 rows. It would be great if I could create another sheet which would display the data from the other sheets online (i.e. the overview sheet should change as I change the data sheets). I also need...

How to use environment variable inside a quoted string in BASH script

I've tried various forms of the following in a bash script: #!/bin/bash svn diff $@ --diff-cmd /usr/bin/diff -x "-y -w -p -W $COLUMNS" But I can't get the syntax to correctly expand the COLUMNS environment variable. I've tried various forms of the following: svn diff $@ --diff-cmd /usr/bin/diff -x '-y -w -p -W $COLUMNS' and svn d...