Search found 11276 matches

by jvierra
Mon Aug 16, 2010 4:46 am
Forum: Other Scripting Languages
Topic: HTA/VBS Noob question
Replies: 29
Views: 15848

HTA/VBS Noob question

By the way - you shouldn't be using ADISEdit to manage AD> it is only for adjusting th esxhema. Chages in ADSIEdit can crash AD forever.

by jvierra
Mon Aug 16, 2010 4:34 am
Forum: VBScript
Topic: VBS to make changes in text files
Replies: 6
Views: 1148

VBS to make changes in text files

So can it not add when it pre-exists and lastly can the warnings for each edit be ignored or parsed/logged into a separate file ?



I don't know what you mean by warnings.

by jvierra
Mon Aug 16, 2010 4:21 am
Forum: VBScript
Topic: VBS to make changes in text files
Replies: 6
Views: 1148

VBS to make changes in text files

yes, i did see the misspelled "security" line, but that SSL setting is likely to pre-exist under some files. Last things first. You will need to do an instr to detect if the line already exists or you will get two copies which will cause the ini file to only uese the one that comes last which will ...
by jvierra
Mon Aug 16, 2010 3:26 am
Forum: VBScript
Topic: VBS to make changes in text files
Replies: 6
Views: 1148

VBS to make changes in text files

Sorry - I misread you question. My fault. Now back to the original issue. How come you are having so much trouble with this. The script was almost complete. YOu only needed to add a couple of lines. You still can't pass go until you answer THAT question. You had the file system object reading and wr...
by jvierra
Mon Aug 16, 2010 2:16 am
Forum: Windows PowerShell
Topic: Select-String pattern
Replies: 16
Views: 2864

Select-String pattern

Nope - yuo broke some code

$lines = @()
NOT
$lines=@{}

$lines+=
NOT
$lines=

Very big difference.
by jvierra
Mon Aug 16, 2010 1:59 am
Forum: VBScript
Topic: VBS to make changes in text files
Replies: 6
Views: 1148

VBS to make changes in text files

Or you can fo it like this. Function EditFile( sFilePathName)         Dim fso, oFile, strText     WScript.Echo "Editing:" & sFilePathName     Set fso = CreateObject("Scripting.FileSystemObject")     Set oFile = fso.OpenTextFile(sFilePathName)     strText = oFile.ReadAll     oFile.Close         strTe...
by jvierra
Mon Aug 16, 2010 1:34 am
Forum: VBScript
Topic: VBS to make changes in text files
Replies: 6
Views: 1148

VBS to make changes in text files

Set fso = CreateObject("Scripting.FileSystemObject") set f = fso.OpenTextFile("c:appsgmiwsfiles.TXT") While Not f.AtEndOfStream     file = f.ReadLine()     EditFile file Wend   Function EditFile( sFilePathName)         Dim oFile, strText, strNewText     Set oFile = fso.OpenTextFile(sFilePathName)  ...
by jvierra
Mon Aug 16, 2010 12:36 am
Forum: Windows PowerShell
Topic: Select-String pattern
Replies: 16
Views: 2864

Select-String pattern

Regex it with it's pattern....

..:..:..

si..see..ci'


"11:22:33" -match '..:..:..'
$matches[0]
jvierra2010-08-16 07:38:56
by jvierra
Mon Aug 16, 2010 12:27 am
Forum: Other Scripting Languages
Topic: HTA/VBS Noob question
Replies: 29
Views: 15848

HTA/VBS Noob question

Run the code as a vbscxript and put in the exact name you are using as part of teh code. Then tell me what won't work. SLasshes and commas are not allowed in account names. They can be used in display names. Are you using the display name to locate the account. This is unreliable because it is not u...
by jvierra
Mon Aug 16, 2010 12:00 am
Forum: Windows PowerShell
Topic: blocking main GUI thread
Replies: 6
Views: 712

blocking main GUI thread

In PowerShell V2 if you need someting to run asynchronously you need to submit it as a job. YOu can then check back on another event for the status or reslutls of teh job. PowerSHell Forms are single threaded. Only one thread is ever available to a form. If the UI is blocked in an event then the who...