Click here to Skip to main content
15,919,434 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How can write these two lines? Pin
MikeMarq24-Nov-07 19:53
MikeMarq24-Nov-07 19:53 
AnswerRe: How can write these two lines? Pin
Christian Graus24-Nov-07 23:04
protectorChristian Graus24-Nov-07 23:04 
Questioncode Pin
trimp24-Nov-07 18:10
trimp24-Nov-07 18:10 
AnswerRe: code Pin
Christian Graus24-Nov-07 18:33
protectorChristian Graus24-Nov-07 18:33 
GeneralRe: code Pin
Paul Conrad24-Nov-07 19:05
professionalPaul Conrad24-Nov-07 19:05 
AnswerRe: code Pin
Paul Conrad24-Nov-07 19:06
professionalPaul Conrad24-Nov-07 19:06 
AnswerRe: code Pin
Mark Churchill26-Nov-07 1:07
Mark Churchill26-Nov-07 1:07 
QuestionVBScript Question Pin
shatterstar645724-Nov-07 14:41
shatterstar645724-Nov-07 14:41 
Can someone tell me whats wrong with this code: Im getting the following error from vbscript runtime:

Line: 18
Char 1
Error: Object required:"
Code: 800A01A8

This is line 18
* If Lcase(Right(objFile.Name,3))="sln" Then *

-Code-

Option Explicit

'==========================Variable declaration & Initialization================================

Dim objFSO, objFolder, objSubFolder, objSubFile, objFile, objShell, colFiles, colFolders, strFolder
strFolder = "C:\Program Files\Visual Studio 2005 SDK"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(strFolder)
Set colFiles = objFolder.Files
Set objShell = CreateObject("WScript.Shell")

'===============================================================================================

For Each objFile in colFiles
Set objFile = objFSO.GetFile(strFolder & "\" & File.Name)
Next

If Lcase(Right(objFile.Name,3))="sln" Then
objShell.Run "devenv /build" & objFile
End If

ScanSubFolders(objFolder)

Sub ScanSubFolders(objFolder)
Set colFolders = objFolder.SubFolders
For Each objSubFolder In colFolders
Set colFiles = objSubFolder.Files
For Each objFile in colfiles
If lcase(Right(objFile.Name,3)) = "sln" Then
objShell.Run "devenv /build" & objFile
End If
Next
ScanSubFolders(objSubFolder)
Next
AnswerRe: VBScript Question Pin
Mycroft Holmes25-Nov-07 15:47
professionalMycroft Holmes25-Nov-07 15:47 
QuestionSaving Serial Port Data To File Pin
crampio24-Nov-07 4:43
crampio24-Nov-07 4:43 
AnswerRe: Saving Serial Port Data To File Pin
Dave Kreskowiak24-Nov-07 12:14
mveDave Kreskowiak24-Nov-07 12:14 
GeneralRe: Saving Serial Port Data To File Pin
crampio26-Nov-07 14:43
crampio26-Nov-07 14:43 
GeneralRe: Saving Serial Port Data To File Pin
Dave Kreskowiak27-Nov-07 2:43
mveDave Kreskowiak27-Nov-07 2:43 
GeneralRe: Saving Serial Port Data To File Pin
crampio28-Nov-07 4:44
crampio28-Nov-07 4:44 
QuestionReading ASCII file from the end?! Pin
MohammadAmiry24-Nov-07 0:26
MohammadAmiry24-Nov-07 0:26 
AnswerCross post Pin
pmarfleet24-Nov-07 2:18
pmarfleet24-Nov-07 2:18 
QuestionDisplay and set only time value in propertygrid Pin
Mahmood Akhter Bhutta23-Nov-07 23:26
Mahmood Akhter Bhutta23-Nov-07 23:26 
AnswerRe: Display and set only time value in propertygrid Pin
Dave Kreskowiak24-Nov-07 4:37
mveDave Kreskowiak24-Nov-07 4:37 
QuestionDump data into MS Project 2003 with VB 6.0 Pin
Ayaqoob23-Nov-07 20:26
Ayaqoob23-Nov-07 20:26 
QuestionBinding Source Moving Problem. Pin
SekharOne23-Nov-07 20:13
SekharOne23-Nov-07 20:13 
AnswerRe: Binding Source Moving Problem. Pin
Dave Kreskowiak24-Nov-07 4:29
mveDave Kreskowiak24-Nov-07 4:29 
Questionhow can i read a Whole XML with DOM Pin
koolprasad200323-Nov-07 19:28
professionalkoolprasad200323-Nov-07 19:28 
AnswerRe: how can i read a Whole XML with DOM Pin
Dave Kreskowiak24-Nov-07 4:27
mveDave Kreskowiak24-Nov-07 4:27 
Questionsource code to read pixels from image using vb.net Pin
al_malar23-Nov-07 18:57
al_malar23-Nov-07 18:57 
AnswerRe: source code to read pixels from image using vb.net Pin
Christian Graus23-Nov-07 19:24
protectorChristian Graus23-Nov-07 19:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.