scripting

Script to modify outlook (2003) contacts

I'm trying to clean up my outlook 2003 contacts, which has become a rather ugly mess of various formatting, etc. Basically, I have a bunch of contacts, in the form of either: 0xxxxxxxxx [ten digits, starting with 0] 0xxxxxxxx [nine digits, starting with 0] 0xxxxxxxx (xxxxx) [the same nine digits above with the last five repeated in par...

Benchmarking ASP.NET websites - How to properly encode HTTP requests (manually) inside of ASP.NET UpdatePanels

Greetings. I am attempting to manually create HTTP Requests with the proper post parameters inside of an update panel. The goal of this is to execute a potential user's path through a web application so that we can benchmark performance. Our benchmark script executes a path by generating HTTP requests, and I'm trying to execute some "...

How to redirect the output of a PowerShell to a file during its execution

I have a Powershell script for which I would like to redirect the output to a file. The problem is that I cannot change the way this script is called. So I cannot do: .\MyScript.ps1 > output.txt How to redirect the output of a Powershell script during its execution? Thanks! ...

WMI/VBS/HTML System Information Script

Hey guys; havin' a problem with this code here; can't seem to work out whats goin' wrong with it. All other variables seem to print fine in the HTML ouput; but I get an error that relates to the cputype variable. I get the following error C:\Users\Methical\Desktop\sysinfo.vbs(235,1) Microsoft VBScript runtime error: Invalid proced...

Programmatically compile a Script Task in SSIS

Hi, For my requirement I need to write Script task from One SSIS package to another. As my server is 64bit machine, when I execute the overriden SSIS package, it throws the error "Binary Script not found". Hence I need to compile the script programmatically in the Parent SSIS package and put the binary code into the another one. I dont k...

How do I make my code perform a random function

I want my code to randomize between three different functions: private void BackPack1() { Player.Skin.SetComponent((PedComponent)3, 3, 0); } private void BackPack2() { Player.Skin.SetComponent((PedComponent)3, 3, 1); } private void BackPack3() { Player.Skin.SetComponent((PedComponent)3, 3, 2); } Is there an easy way? ...

Best language suited for scanning many files for a keyword (called from a Cocoa app)?

I'm writing a Cocoa app for Leopard that, given a directory of text files, will scan through them, looking for a search pattern (let's pretend they're source files and I just want to find C comments). It will then present the results to the user. While I think I could certainly do this with Cocoa, it feels like it's really meant to be h...

Extract resources from PE file via script/command-line

I want to write a script (or something similar. don't care which language) which extracts the resources from a PE file (.rsrc section). I'm using Python's pefile and peutils for various PE tasks, but couldn't find anything which actually extracts the resources. Any help will be appreciated. Thanks, Moshe ...

Use of \c in shell scripting

I am editing someone else scripts and I see s/he has used this \c very often like echo "bla bla \c" which when used simply prints bla bla \c in screen. So, I was wondering why use it or may be I am missing something, because it is doing nothing at all ? I checked escape characters and I didn't find any such thing as well. Is there...

How do I keep DOS batch echo on for parent script?

I have a DOS batch file that I want echoing turned on. However, this DOS batch file calls other batch files that then turn echoing off. I don't mind that the child batch files turn echoing off for themselves. But, is there any way for them not to affect the main script's echoing? ...

Validation detected dangerous client input - post from TinyMCE in asp.net

I get this error when i post from TinyMCE in an asp.net mvc view Error: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted from googling, it says to just add a validateRequest in the Page directive at the top which i did but i STILL get this error. As you can see...

Do you know tool building tree of include files in project\file?

Say, I'd like to have a tool (or script?) taking project (or .h file) and building searchable tree of "includes" included into it (of included into of included into and so so on). Is there exist something like this? Should I write this by myself [of course I am :), but may be somebody had it already written or may be has an idea how to g...

Make jquery script global

Hey guys! I have 5 diffrent scripts on page, which all do the same: <script language="javascript"> $(document).ready(function(){ $(".hideshow-news").hide(); $(".roll-li-news").click(function(){ if ($(".hideshow-news").is(":hidden")) { $(".hideshow-news").slideDown("slow"); $(".roll-li...

How can I script resetting the mouse pointer after an application fails to reset it?

A friend of mine has to use an internally-written Windows application to perform part of their job. Something he has noticed is that the app does the bit where it changes the mouse pointer to an hourglass when it's working, sets it back to normal when it's done, etc. However there appears to be a bug where in some circumstances the mo...

How to build a script to backup all databases in SQL Server?

We need to backup 40 databases inside a SQL Server instance. We backup each database with the following script: BACKUP DATABASE [dbname1] TO DISK = N'J:\SQLBACKUPS\dbname1.bak' WITH NOFORMAT, INIT, NAME = N'dbname1-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10 GO declare @backupSetId as int select @backupSetId = positi...

how to generate flipped text like this - ʍoႨɟɹәʌoʞɔɐʇs

hi i want to make a script which can flip the text upside down like if i type stackoverflow it should make it to - ʍoႨɟɹәʌoʞɔɐʇs. Many sites do this like this one link text and this one link text ...

Ruby outputting to the same line as the previous output

Hello, I am writing a Ruby script to generate a CSV file. My understanding is that each line in a CSV file is a row in a table. Right now my script generates something looks like this Vancouver, Calgary, Routes1, Routes2, Routes3, Vancouver, Toronto etc, etc, etc but I need it to make it look like this to import it to a DB Vancouv...

How to check if a IIS directory is virtual directory or not?

I am trying to find a way to write a script which will check if a IIS 6 directory is a virtual directory or not (see image below - I would like to see if TestMPIService is a virtual dir or not). I tried with Powershell and WMI, but I am unable to find that information anywhere. Anybody has an idea how to do such thing? ...

What do you know about avaloq scripts?

Hi, I wonder who has programmed using avaloq script. What are its benefits? What is it used for? WHat does it look like? ...

Hosting WSH (VBScript, JavaScript) in your delphi application?

I'm looking to execute user supplied scripts from my Delphi application. Is it possible to host the Windows Script Host engine in my application and supply it with scripts to execute? Or, is there a better way to approach this problem? P.S I'm not looking for third-party components. ...