Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating vbscript through Notepad 1

Status
Not open for further replies.

collierd

MIS
Dec 19, 2001
509
DE
Hello

How do I create vbscript using notepad?

Thanks

Damian.
 
Open Notepad, enter your code and the select File Save as,

enter the filename IE test.vbs select All Files as the file type and click on OK.

If you select Text File as the format you will end up with test.vbs.txt
Regards
Steve Friday
 
It seems, no matter what I do it will not save it as test.vbp
It saves as test.vbp.txt
 
Filename should = test.vbs
Save as type = All Files
Encoding = ANSI

if it still plays up, gor to the run prompt and enter

Rename test.vbs.txt test.vbs

Regards
Steve Friday
 
Am I missing something blatently obvious
You're right I can rename this (nothing works through notepad)
Is it not just the case that I can simply double click this and it will execute ??
 
you can only double click it if the extension is .VBS or WSF if it is .TXT it will launch notepad

VBS = VBscript file
WSF = Windows Script File - XML based file with VBScript code within it.

Regards
Steve Friday
 
It would help is i'd typed the extension right !!
The script didn't execute correctly but I think its a problem with the script
The principle behind it worked perfectly though

Thanks very much

Damian.
 
it would also be pretty easy just to save it as a .htm if this is refereing to a web app A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
This is a simple problem concerning the .TXT.

You have it setup to hide the extensions of known file types. Turn that off and the problem will be solved. It happens a lot on computers at my college.
 
If you plan on writing much code, I suggest that you get a better text editor than Notepad. I suggest Textpad.
-- Just trying to help...
[wolf]<--- This is a wolf? We need a new icon.......
mikewolf@tst-us.com
 
I've been trying out &quot;PrimalScript&quot; for writing my VBS and ASP code. I love it, though it may be too high-priced for me ($150). Very helpful in debugging.
 
Editplus editor :)
Colorcoding, ftp editing, regexp search/replace through open files and/or all files in dir/subdir, clip text libraries, free, 100 user configurable tool spots (so you can compile straight from inside it), brace matching, free, built in browser, did I mention free? :)

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
This space has nothing in it, it's all ni your imagination
 
Easiest way in notepad the &quot;name&quot; something, Without playing with the Save as, clicking files of all types etc.

Click File, Save as,

In the File Name boxe REMOVE ALL TEXT....so the box is empty.

enter the filename and extension you want surrounded by double quotes i.e.

&quot;myfile.vbs&quot;
(Be sure to include quotes)
then click the save button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top