Login | |
|
 |
RE: Running MSH scripts? - 1/31/2006 7:22:03 AM
|
|
 |
|
| |
ebgreen
Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
|
I was having a problem with running scripts and it was an explicit path issue. So, if I am in a directory where the script is I need to type ./Test.msh to run the script not just Test.msh.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Running MSH scripts? - 1/31/2006 7:48:47 AM
|
|
 |
|
| |
mbouchard
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
|
hmm, nope, tried that and still not working. Some more strange behavior, if I try to edit the msh file (right click/edit) I get access denied. I took a look at the settings under file types and Notepad is set for both open and edit. Will need to install MSH support on another pc and check it out. Also, from a cmd line if I do msh test.msh or msh -command test.msh I get a test.msh not cmdlet error. I guess I just need to read more.
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
 |
RE: Running MSH scripts? - 2/1/2006 12:39:25 AM
|
|
 |
|
| |
mbouchard
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
|
Ahh that worked. Thanks. Why the need for ./?
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
 |
RE: Running MSH scripts? - 2/1/2006 3:51:29 AM
|
|
 |
|
| |
ebgreen
Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
|
I believe it is a security feature so that someone couldn't just put some maliscious code on your machine in a file named Dir.msh then it would run the next time you try to do a Dir command.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Running MSH scripts? - 5/5/2006 8:19:48 AM
|
|
 |
|
| |
mcds99
Posts: 407
Score: 4
Joined: 2/28/2006
Status: offline
|
I could be totally wrong but I'll give it a whirl... The ./ is a left over from shell scripting (bash I think) it has been many years googling......... see http://linuxcommand.org/wss0020.php#bashrc under "Shell functions" It's not a great explanation but it might throw some light on the subject. If you go out to google and search for /. or ./ you will get a blank result.
|
|
| |
|
|
|
|
|