Jump to content

Canada Jack

How does the HTA to write a line to txt file?

Recommended Posts

I'm working on an HTA frontend for my task sequences, starting with a basic computer information one. I had previously used a .vbs that .wrote a line in the txt file. However, vbscript inside of an HTA aren't allowed.

Is there any other way to write a line into the txt file from the HTA?



Share this post

Link to post
Share on other sites

I found an idea:


created an hta, I placed this file in a package without a program.

used a "run command line" task and pick the package and put xxx.hta in the command line: box. I placed the task sequence item before Apply windows settings.


It's works.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...