scripts in windows

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
tom
Posts: 168
Joined: Wed Jul 14, 2004 10:32 pm

scripts in windows

Post by tom »

Hey guys,

I wrote a script potentially useful to some windows-using friends. I just tried to test it on a windows machine and I discovered that I have no idea how to start it.

I changed the bang path to

#!C:\path\to\newlisp.exe

then made a shortcut on the desktop to the script. nothing.

Once I get all the wrinkles ironed out I might make an exe, but first things first. What am I not doing?

m35
Posts: 171
Joined: Wed Feb 14, 2007 12:54 pm
Location: Carifornia

Post by m35 »

I'm going to venture a guess that you're fairly new to the Microsoft Windows OS. ;)

Windows doesn't use the first line of text files to determine the executable that should be run with the script as an argument.

But like Linux-like OSs, you can run the script the straight-forward way using the command line

Code: Select all

newlisp nameofscript.lsp
If you want the script to be run with a simple double-click of the icon, there are a few ways to do it. This is the most common approach:
"How to change or select which program starts when you double-click a file in Windows XP"
http://support.microsoft.com/kb/307859
"In Windows, how do I associate an application with a file type?"
http://kb.iu.edu/data/adhc.html

tom
Posts: 168
Joined: Wed Jul 14, 2004 10:32 pm

Post by tom »

It's been a while.

Thanks, I'll try your suggestions.

Locked