Click here to Skip to main content
15,924,452 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Efficient way to Concatenate Strings in VB 6.0 Pin
indian14314-Nov-08 2:19
indian14314-Nov-08 2:19 
GeneralRe: Efficient way to Concatenate Strings in VB 6.0 Pin
Dave Kreskowiak14-Nov-08 3:42
mveDave Kreskowiak14-Nov-08 3:42 
GeneralRe: Efficient way to Concatenate Strings in VB 6.0 Pin
indian14314-Nov-08 4:35
indian14314-Nov-08 4:35 
GeneralRe: Efficient way to Concatenate Strings in VB 6.0 Pin
Dave Kreskowiak14-Nov-08 9:37
mveDave Kreskowiak14-Nov-08 9:37 
GeneralRe: Efficient way to Concatenate Strings in VB 6.0 Pin
jzonthemtn15-Nov-08 8:46
jzonthemtn15-Nov-08 8:46 
GeneralRe: Efficient way to Concatenate Strings in VB 6.0 Pin
indian14316-Nov-08 18:29
indian14316-Nov-08 18:29 
GeneralRe: Efficient way to Concatenate Strings in VB 6.0 Pin
indian14316-Nov-08 22:13
indian14316-Nov-08 22:13 
QuestionVB.NET App to boot into safemode and run an application Pin
nikselby123414-Nov-08 0:03
nikselby123414-Nov-08 0:03 
Basically im after an application that will enable autologon, http://technet.microsoft.com/en-us/sysinternals/bb963905.aspx[^] then write to the boot.ini file and add /safemode:network and then run an application upon logon. with a button to undo the changes.

so far have found the following script:
'SafeModePrep.vbs
Const ReadOnly = 1
Dim objFile
Dim objFSO: Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists("C:\Boot.org") Then
Set objFile = objFSO.GetFile("C:\Boot.org")
If objFile.Attributes And ReadOnly Then objFile.Attributes = objFile.Attributes Xor ReadOnly
objFSO.DeleteFile "C:\Boot.org"
End If
objFSO.CopyFile "C:\Boot.ini", "C:\Boot.org"
arrData = Split(objFSO.OpenTextFile("C:\Boot.ini").ReadAll, vbNewLine)
Set objFile = objFSO.GetFile("C:\Boot.ini")
'Remove ReadOnly attribute, if it exists
If objFile.Attributes And ReadOnly Then objFile.Attributes = objFile.Attributes Xor ReadOnly
objFSO.DeleteFile "C:\Boot.ini"
Set objFile = objFSO.CreateTextFile("C:\Boot.ini")
strDefault = "default"
For Each Item In arrData
If InStr(Item, "default") > 0 Then
strDefault = Mid(Item, InStr(Item, "=") + 1)
objFile.WriteLine Item
ElseIf InStr(Item, strDefault) > 0 Then
objFile.WriteLine Item & " /safeboot:network"
Else
objFile.WriteLine Item
End If
Next
objFile.Close
Set objFile = Nothing
Set objFSO = Nothing

Any help would be much appreciated, im only a real beginner at programming
AnswerRe: VB.NET App to boot into safemode and run an application Pin
jzonthemtn14-Nov-08 2:04
jzonthemtn14-Nov-08 2:04 
AnswerRe: VB.NET App to boot into safemode and run an application Pin
Dave Kreskowiak14-Nov-08 3:39
mveDave Kreskowiak14-Nov-08 3:39 
Questionparent window takes long to load ... why? Pin
hellotherelittleboy13-Nov-08 22:28
hellotherelittleboy13-Nov-08 22:28 
AnswerRe: parent window takes long to load ... why? Pin
jzonthemtn14-Nov-08 2:05
jzonthemtn14-Nov-08 2:05 
GeneralRe: parent window takes long to load ... why? Pin
hellotherelittleboy14-Nov-08 2:14
hellotherelittleboy14-Nov-08 2:14 
GeneralRe: parent window takes long to load ... why? Pin
jzonthemtn14-Nov-08 2:22
jzonthemtn14-Nov-08 2:22 
GeneralRe: parent window takes long to load ... why? Pin
hellotherelittleboy14-Nov-08 3:10
hellotherelittleboy14-Nov-08 3:10 
QuestionHow to Set Registry Rule in vb.net Pin
red hat bitz13-Nov-08 13:49
red hat bitz13-Nov-08 13:49 
AnswerRe: How to Set Registry Rule in vb.net Pin
Dave Kreskowiak13-Nov-08 14:01
mveDave Kreskowiak13-Nov-08 14:01 
GeneralRe: How to Set Registry Rule in vb.net Pin
red hat bitz13-Nov-08 15:54
red hat bitz13-Nov-08 15:54 
GeneralRe: How to Set Registry Rule in vb.net Pin
Dave Kreskowiak13-Nov-08 18:21
mveDave Kreskowiak13-Nov-08 18:21 
GeneralRe: How to Set Registry Rule in vb.net Pin
Paul Conrad13-Nov-08 19:28
professionalPaul Conrad13-Nov-08 19:28 
AnswerRe: How to Set Registry Rule in vb.net Pin
Nanda_MR13-Nov-08 17:27
Nanda_MR13-Nov-08 17:27 
GeneralRe: How to Set Registry Rule in vb.net Pin
Paul Conrad13-Nov-08 19:29
professionalPaul Conrad13-Nov-08 19:29 
QuestionDataGridView column sort using different column value Pin
CAN Coder13-Nov-08 7:42
CAN Coder13-Nov-08 7:42 
AnswerRe: DataGridView column sort using different column value Pin
Mycroft Holmes13-Nov-08 16:00
professionalMycroft Holmes13-Nov-08 16:00 
GeneralRe: DataGridView column sort using different column value Pin
CAN Coder14-Nov-08 6:37
CAN Coder14-Nov-08 6:37 

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.