isoda
-
Total Posts
:
4
- Scores: 0
-
Reward points
:
0
- Joined: 5/2/2009
-
Status: offline
|
Expected statement error
Saturday, May 02, 2009 7:15 PM
( permalink)
Im embarrassed to even post this! Its the simplest script possible and yet I have a problem c:> cscript test.vbs //nologo wscript.echo "Testing!" Error on line one, 3rd char, error is Expected Statement
|
|
|
|
ebgreen
-
Total Posts
:
8227
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: online
|
RE: Expected statement error
Sunday, May 03, 2009 12:30 AM
( permalink)
So you have this line: wscript.echo "Testing!" as the only line in a file called test.vbs?
|
|
|
|
isoda
-
Total Posts
:
4
- Scores: 0
-
Reward points
:
0
- Joined: 5/2/2009
-
Status: offline
|
RE: Expected statement error
Sunday, May 03, 2009 5:37 AM
( permalink)
ORIGINAL: ebgreen So you have this line: wscript.echo "Testing!" as the only line in a file called test.vbs? OH Am I supposed to put the first line when I call it from the command prompt?
|
|
|
|
ebgreen
-
Total Posts
:
8227
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: online
|
RE: Expected statement error
Monday, May 04, 2009 2:48 AM
( permalink)
Here is how to execute a VBScript (well one way at least): 1) Open Notepad.exe 2) In Notepad type this line: WScript.Echo "Test" 3) Save the Notepad file as C:\temp\test.vbs 4) Close Notepad 5) Open Windows Explorer 6) Navigate to the C:\temp folder 7) Double Click the test.vbs file
|
|
|
|
isoda
-
Total Posts
:
4
- Scores: 0
-
Reward points
:
0
- Joined: 5/2/2009
-
Status: offline
|
RE: Expected statement error
Monday, May 04, 2009 5:06 PM
( permalink)
I got it thanks for your help! =]
|
|
|
|