◎ What should I do if the file name in HTA cannot be properly displayed with spaces?

Source: Internet
Author: User

◎ What should I do if the file name in HTA cannot be properly displayed with spaces?

<Head>

<Title> image </title>

<HTA: Application

Applicationname = "image"

Scroll = "no"

Singleinstance = "yes"

Windowstate = "normal"

Showintaskbar = "yes"

Maximizebutton = "no"

Minimizebutton = "no"

Scroll = "no"

Navigable = "yes"

Border = "thin"

>

 

</Head>

<Script language = "VBScript">

Window. resizeTo 330,400

Ileft = (window. Screen. Width-330)/2

ITOP = (window. Screen. Height-400)/24

Window. moveTo ileft, iTOP

Sub liulan

Set objdialog = Createobject ("useraccounts. commondialog ")

Objdialog. Filter = "JPG file | *. jpg |"

Objdialog. showopen

Path = objdialog. filename

STR = "

Tupian. innerhtml = Str

End sub

 

</SCRIPT>

<Body bgcolor = "0099ff"/set the background color>

<Input type = "button" name = "liulan" value = "" onclick = "liulan">

<Span id = "tupian"> image display area </span>

</Body>

 

In this HTA, if there is a space in the file name or path obtained in the path (for example, place the image in "My document" or the file name is: Rotate 0010.jpg), the image cannot be displayed normally, could you solve this problem?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.