How to modify driver file via vbscript?

pts.
Tags:
Computer Associates
Development
Distribution/logistics applications
Microsoft Windows
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Skbinmul
    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.
    45 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following