hi all,

what editor would you recommend to write vbscript code (apart form notepad)?

thanks a lot

Re: vbscript editors by John

John
Fri Aug 31 13:14:28 PDT 2007

There is a simple script editor in Microsoft Office, mse7.exe, that gives
you visual cues for code segments, loops, comments and such.

"JSt" <Jst@nospam.com> wrote in message news:fb9ro1$q0$1@aioe.org...
> hi all,
>
> what editor would you recommend to write vbscript code (apart form
> notepad)?
>
> thanks a lot



Re: vbscript editors by Harvey

Harvey
Fri Aug 31 14:10:10 PDT 2007

My vavorite is vbsEdit (www.vbsedit.com). The built-in debugger makes it
well worth the price.

Another good editor is vbsEditor
(http://www.koansoftware.com/en/art.php?art=38).




Re: vbscript editors by dch35920

dch35920
Sat Sep 01 14:32:39 PDT 2007

You can also develop your script using the VBA editor for one of the
Office apps and then copy and paste it over. Most things written in
VBA should work in VBScript with a minimum of alteration. Just keep
the following in mind

1) VBScript does not support variable types VBA does. The line [Dim
strMessage as String] in VBA must be changed to [Dim strMessage]

2) If your developing VBScript for a custom Outlook form, the
controls only support the _click event the others that you would
expect with VBA such as _onChange don't exist.

3) You might already know this but - VBScript does not support
program flow (can't think of the correct term) so basically you can't
use GOTO statements and labels which means that if you want to use
error handling with the following code:

SET objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.copyFile "c:\test.txt"

You have to test the error object to see if an error occurred as in

On Error Resume Next
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.copyFile "c:\test.txt"
if err.number <> 0 the msgbox "An error occurred."

The [On Error Resume Next] statement can be at the top of your SUB or
FUNCTION.

There are probably some other issues, but I can't think of any at the
moment.


Re: vbscript editors by Paul

Paul
Sat Sep 01 14:47:17 PDT 2007

Also, the scripting help file has lots of good info:
VBScript Features not in Visual Basic for Applications
Includes a table that lists the VBScript features that are not in VBA.
Visual Basic for Applications Features Not In VBScript
Includes a table that lists VBA features that are not in VBScript.

-Paul Randall

<dch35920@yahoo.com> wrote in message
news:1188682359.379607.193290@k79g2000hse.googlegroups.com...
> You can also develop your script using the VBA editor for one of the
> Office apps and then copy and paste it over. Most things written in
> VBA should work in VBScript with a minimum of alteration. Just keep
> the following in mind
>
> 1) VBScript does not support variable types VBA does. The line [Dim
> strMessage as String] in VBA must be changed to [Dim strMessage]
>
> 2) If your developing VBScript for a custom Outlook form, the
> controls only support the _click event the others that you would
> expect with VBA such as _onChange don't exist.
>
> 3) You might already know this but - VBScript does not support
> program flow (can't think of the correct term) so basically you can't
> use GOTO statements and labels which means that if you want to use
> error handling with the following code:
>
> SET objFSO = CreateObject("Scripting.FileSystemObject")
> objFSO.copyFile "c:\test.txt"
>
> You have to test the error object to see if an error occurred as in
>
> On Error Resume Next
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> objFSO.copyFile "c:\test.txt"
> if err.number <> 0 the msgbox "An error occurred."
>
> The [On Error Resume Next] statement can be at the top of your SUB or
> FUNCTION.
>
> There are probably some other issues, but I can't think of any at the
> moment.
>



RE: vbscript editors by RemS

RemS
Sat Sep 01 15:20:01 PDT 2007

"JSt" wrote:

> hi all,
>
> what editor would you recommend to write vbscript code (apart form notepad)?
>
> thanks a lot
>

Just for the writing a a script:

Notepad2.exe (what I use)
http://en.wikipedia.org/wiki/Notepad2

-And-

Notepad++
http://en.wikipedia.org/wiki/Notepad++


In 'folderoptions...' you can set one of these editors as the default editor
for your script file types.

\Rems

Re: vbscript editors by ThatsIT

ThatsIT
Sun Sep 02 05:38:33 PDT 2007

If you have office, use mse7.exe

search for this file, if it is not installed press ctl+shift+F11 from word
or excel and it will install.



"Paul Randall" <paulr901@cableone.net> wrote in message
news:OKeBRGO7HHA.1484@TK2MSFTNGP06.phx.gbl...
> Also, the scripting help file has lots of good info:
> VBScript Features not in Visual Basic for Applications
> Includes a table that lists the VBScript features that are not in VBA.
> Visual Basic for Applications Features Not In VBScript
> Includes a table that lists VBA features that are not in VBScript.
>
> -Paul Randall
>
> <dch35920@yahoo.com> wrote in message
> news:1188682359.379607.193290@k79g2000hse.googlegroups.com...
>> You can also develop your script using the VBA editor for one of the
>> Office apps and then copy and paste it over. Most things written in
>> VBA should work in VBScript with a minimum of alteration. Just keep
>> the following in mind
>>
>> 1) VBScript does not support variable types VBA does. The line [Dim
>> strMessage as String] in VBA must be changed to [Dim strMessage]
>>
>> 2) If your developing VBScript for a custom Outlook form, the
>> controls only support the _click event the others that you would
>> expect with VBA such as _onChange don't exist.
>>
>> 3) You might already know this but - VBScript does not support
>> program flow (can't think of the correct term) so basically you can't
>> use GOTO statements and labels which means that if you want to use
>> error handling with the following code:
>>
>> SET objFSO = CreateObject("Scripting.FileSystemObject")
>> objFSO.copyFile "c:\test.txt"
>>
>> You have to test the error object to see if an error occurred as in
>>
>> On Error Resume Next
>> Set objFSO = CreateObject("Scripting.FileSystemObject")
>> objFSO.copyFile "c:\test.txt"
>> if err.number <> 0 the msgbox "An error occurred."
>>
>> The [On Error Resume Next] statement can be at the top of your SUB or
>> FUNCTION.
>>
>> There are probably some other issues, but I can't think of any at the
>> moment.
>>
>
>


Re: vbscript editors by LJB

LJB
Tue Sep 04 06:42:16 PDT 2007


<dch35920@yahoo.com> wrote in message
news:1188682359.379607.193290@k79g2000hse.googlegroups.com...
> You can also develop your script using the VBA editor for one of the
> Office apps and then copy and paste it over. Most things written in
> VBA should work in VBScript with a minimum of alteration. Just keep
> the following in mind
>
> 1) VBScript does not support variable types VBA does. The line [Dim
> strMessage as String] in VBA must be changed to [Dim strMessage]
>
> 2) If your developing VBScript for a custom Outlook form, the
> controls only support the _click event the others that you would
> expect with VBA such as _onChange don't exist.
>
> 3) You might already know this but - VBScript does not support
> program flow (can't think of the correct term) so basically you can't
> use GOTO statements and labels which means that if you want to use
> error handling with the following code:
>
> SET objFSO = CreateObject("Scripting.FileSystemObject")
> objFSO.copyFile "c:\test.txt"
>
> You have to test the error object to see if an error occurred as in
>
> On Error Resume Next
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> objFSO.copyFile "c:\test.txt"
> if err.number <> 0 the msgbox "An error occurred."
>
> The [On Error Resume Next] statement can be at the top of your SUB or
> FUNCTION.
>
> There are probably some other issues, but I can't think of any at the
> moment.
>

I like the following which adds a context menu item to edit vbs files. It
uses the VBA editor from Excel. Run the scrip in the article to install the
feature. Run the script a second time to un-install it. I've used it for
several years and find it very handy.

http://groups.google.com/group/microsoft.public.scripting.vbscript/msg/47eae3bddee0f47e

LJB



Re: vbscript editors by console1

console1
Tue Sep 04 13:59:02 PDT 2007

Paul Randall wrote:
> Also, the scripting help file has lots of good info:


I am not sure what help file this is. Where can I find it?




thanks

Re: vbscript editors by Michael

Michael
Tue Sep 04 17:41:59 PDT 2007

console1 wrote:
> Paul Randall wrote:
>> Also, the scripting help file has lots of good info:
>
>
> I am not sure what help file this is. Where can I find it?
>

Download details: Windows Script 5.6 Documentation
<http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en>

--
Michael Harris
MVP - Windows Server Admin Frameworks



Re: vbscript editors by Paul

Paul
Tue Sep 04 18:17:01 PDT 2007


"console1" <console1@nospam.console1.org> wrote in message
news:fbkgum$sb$1@aioe.org...
> Paul Randall wrote:
>> Also, the scripting help file has lots of good info:
>
>
> I am not sure what help file this is. Where can I find it?

Hopefully you have a file named SCRIPT56.CHM somewhere on your system.

You can download much of M$'s scripting-related info at:
http://www.microsoft.com/downloads/Browse.aspx?displaylang=en&productID=478EA476-5552-479E-A200-2C33FFD43F24

-Paul Randall



Re: vbscript editors by ---DGI972---

---DGI972---
Thu Sep 06 18:02:57 PDT 2007

http://www.robvanderwoude.com/scripteditors.html

"JSt" <Jst@nospam.com> a écrit dans le message de
news:fb9ro1$q0$1@aioe.org...
> hi all,
>
> what editor would you recommend to write vbscript code (apart form
notepad)?
>
> thanks a lot
>