Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4562142
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:10:27+00:00 2026-05-21T18:10:27+00:00

I’m currently designing a site for a not so computer-savvy guy who wants to

  • 0

I’m currently designing a site for a not so computer-savvy guy who wants to edit the site himself using One.com’s dreadful WebCreator.

Fine by me, however WebCreator has many flaws, the most annoying being that it removes the DOCTYPE when the page is saved. WebCreator doesn’t allow you to edit .php- or .shtml-files, so I have to add the DOCTYPEs after my friend has saved the page.

So what I basically want to do is to write a batch-script that the user can double-click on his Windows machine. This script-of-my-dreams would add the DOCTYPE to the top of the document and save it.

Is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T18:10:27+00:00Added an answer on May 21, 2026 at 6:10 pm

    I don’t think so, not solely with a batch script.

    One thing you could do is:

    1. download the file
    2. edit it in automated fashion to add the desired line
    3. upload the file.

    Batch doesn’t include FTP capabilities, so… batch alone wouldn’t be sufficient. Supposing that you had an Ftpdriver program, something that you could script, then it wouldn’t be difficult.

    Something like this:

     FtpDriver -download ftp://woo/hoo.htm   -password xxxxx  -local c:\temp\hoo.htm
     echo DOCTYPE  > c:\temp\extra.line.htm
     copy c:\temp\extra.line.htm + c:\temp\hoo.htm c:\temp\hoo.new.htm
     FtpDriver -upload ftp://woo/hoo.htm   -password xxxxx  -local c:\temp\hoo.new.htm
    

    This is an old FtpDriver program I use for purposes like this:
    http://cheeso.members.winisp.net/srcview.aspx?dir=ftp

    Since that tool was written, the FtpWebRequest was added to the .NET Framework; if you wrote that tool now, you’d use that. But the old program I linked to, still works.

    Why you need a program: The built-in FTP for Windows is not scriptable. It’s a user-interactive console program, which means you have to type things into it, in order to get it to upload or download. It is not possible to automate with cmd.exe programs or commands like echo.
    So you need that external FTP capability.

    If you’re willing to get away from batch, then
    Powershell is a good idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I'm making a simple page using Google Maps API 3. My first. One marker
I am reading a book about Javascript and jQuery and using one of the
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want use html5's new tag to play a wav file (currently only supported
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.