Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What programming languages are installed in Windows XP by Default

Where I am at, it is not allowed to install any software. I need to automate some tasks and I cannot do it in powershell because it is not allowed. Are there any languages already installed on windows that i can use to automate and probably integrate with microsoft office?

like image 866
Luke101 Avatar asked Jan 05 '12 17:01

Luke101


2 Answers

VBScript (WSH/CSCRIPT), Batch (MS Command Shell typically referred to as DOS), through Office Applications themselves you have VBA (Visual Basic for Applications)

like image 64
Bueller Avatar answered Sep 21 '22 17:09

Bueller


Yes, you can run VBScript and JScript through Windows Script Host. While using these languages, you can create objects to interact with Microsoft Office.

EDIT:

I've found the documentation for WSH fairly lacking, especially for JScript examples. Recently I wrote a script to print all files in a folder and subfolders, had to use JScript because my target machine was under similar restrictions to yours. Check out this gist for the source, it should give you a rough idea of how WSH scripts can work.

Beyond that, you can interact with Excel, for example, by calling CreateObject("Excel.Application") and using the returned object. I had to do this once, but that code belongs to a former employer and I can't remember the specifics beyond grabbing an Excel instance.

like image 23
Matt Stephenson Avatar answered Sep 21 '22 17:09

Matt Stephenson