How to modify driver file via vbscript?
0 pts.
0
Q:
How to modify driver file via vbscript?
We need to modify the services driver file found in C:WindowsSystem32Driveretc. We want to include an addendum to the file not overwrite the file via an msi for a particular application. What is the easiest way to do this? If we use capture via Wise, we end up having the file overwritten.
ASKED: May 1 2006  8:30 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
0 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Unless there are other circumstances precluding this, wouldn't it be best to simply read in the existing file and append your additions, then rewrite it? I may be missing something here, but that is the approach I would attempt first, as it is essentially a plain text file.
Last Answered: May 2 2006  8:44 AM GMT by Mistoffeles   0 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

skbinmul   45 pts.  |   May 3 2006  11:02PM GMT

You might try the copy command, with the append option:

copy C:WindowsSystem32DriveretcSourcefile.ext + C:WindowsSystem32DriveretcAppendedDataFile.ext C:WindowsSystem32DriveretcDestinationfile.ext

then save your source file by renaming it, and either copy your destination file to the source file or simply rename the destination file to the source file’s name.

I’ve never had to use it, but if you’re not working with text files, you could try the /B copy commandline switch to indicate binary files.

Hope this helps.

 
0