Markdmac and MrMovie,
I appreciate your input.
It just goes to show that I don't know what 2000 Server Admins do. I am really writing stand- alone stuff, and in some cases it will be a utility that can be used in multiple places.
MrMovie:
As I would really like to be able to read every book...
Hello All,
I have been writing non- administrative, non- HTML or ASP scripts for about a year now.
I know I am lacking in some very basic knowledge that would assist in finishing these scripts quicker and more efficiently.
I have looked on the internet for training and all I really see is stuff...
Hey Tsuji,
I figured it out.
Not the most elegant method I'm sure, but it does the trick and works really fast.
in summary, after breaking out the GIF from the original file and putting that code in another file, I conducted my changes in the first array then broke out the GIF file in the...
Hey Tsuji,
Thank you for your input.
I will ammend the script accordingly for some of it.
The "split" piece is tricky because each line I look at has a different ending character. Sometimes it's "}" or ";}" or something else totally.
I am looking at the rtf via notepad so I can see what the...
Hello All,
I am trying to read a .RTF file and make changes to three lines.
Originally tried just writing to a variable with the changed lines, but the file is so large the computer will hang on this file for quite awhile. When it is reading the rest of the file, and that is before it has...
Hello All,
I am in the IT dept of a small company in Texas.
I have a number of users using Peachtree Complete Accounting, 2002.
A restore was performed and some info was lost and I am clueless on how to fix this.
The restore was originally performed from a TSM backup because they were missing...
Gentlemen,
Thank you for your succinct and correct answers. That worked perfectly.
It helps to answer someone who know.
Once again thank you, both of you.
I cannot tell you how much your site has helped me in my endeavor to learn vbscript. I don't usually even have to ask, I can just search...
Good Morning All,
I have a series of files in a different set of directories.
Each set of files is different within itself (in naming convention).
I have made a formula, in one case, that I would like to pass to an all- purpose function that will parse some info and then zip the appropriate...
OH,
I got it! I was opening the file twice, and the second time it was opening without unicode support and using that instance. That's what I get for not paying attention.
Thank you for your help. I have learned something new now with the unicode support issue.
Thanks, PH.
rnpIII
I'm still fairly new to scripting. I know enough to do some damage but still have a lot to learn.
Is this something I can add to the
set ts = Ofso.opentextfile(regfilespec,1,True,TristateUseDefault)
line?
I have tried all of the different Tristate settings, what am I missing?
rnpIII
Hello,
I was reading from post number 855663 where Tsuji wrote an excellent script to change a reg file from one thing to another.
The problem I am having with it is reading an XP reg file I get gibberish until I open it in notepad save it as a txt file then resave it as a reg file.
Any ideas...
Hello Jerz,
Appreciate the advice, this may help on the zip piece.
As for the aforementioned code, see below:
Begin Code:------------------------------------------------------
Sub CopyIT (I, II) ' Possible vars - I,II BilDir, WorkDir
' FinDir, WorkDir
Dim WrkCnt
WrkCnt = 0...
Hi Tsuji,
I think I am confused about the "right- hand- side" bit, I have seen that before and don't really understand it.
Anyway, the issue is accessing FleCnt regardless of when.
I have about 500 lines of code that works well enough, but this particular piece comes up with some strange...
Hello All,
I have been battling with this for a bit.
I am new to vbScript so please be patient.
Here is the scenario:
Say I get a file count of a folder and assign it to a variable.
Set Folder = Ofso.GetFolder(I)
FleCnt = Folder.Files.Count
Then I go and move files to and from this folder...
Hello TomThumbKP,
Changing from Move to Copy had no effect.
I think I found the issue.
First and formost, the "Close" statements (?). They do help. Without them the code does seem to fail.
Second, I noted in my processes, for some reason from somewhere I had another script running (evidently...
Hello TomThumbKP,
I get:
The copy args are: \\FILES01\Home\Billing\Day_Proc\AdminiSource\CISI\Work\Cyccb320041118.txt, \\FILES01\Home\Billing\Day_Proc\AdminiSource\CISI\Work\Match\
The paths look correct, I can't see anything wrong.
It must be the readline having a lock on the files.
I have...
Hello TomThumbKP,
I get the same error on the same line as before, well, the same piece of code (line 41), I had to change line 34 back to "If strFI = strFII then" from the FI.readline... because of another error that did not concern me at the time.
I noted in another test, if I take this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.