Problem launching Firefox from Windows with file path that contains space characters in the html file's file name

We have a software application that programmatically launches the default web browser using the Windows shell execute function ("ShellExecuteA" in the "shell32.dll" library of the Windows API) along with a file path for a saved local html file that is to be displayed. In the case that FireFox is the default browser and the file path for the html file contains any space characters in the html file's file name, Firefox (in this case v7.01) will display an error message "File not Found..." and then will also proceed to open tabs for each of the individual words in the file name, launching as the URL path, each individual word appended to ".com".
In the following example, the path "C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm" when launched programmatically, resulted in the error message "File not Found...Firefox can't find the file at /C:/KSSecOfState/Forms/Kansas." and opened up browser windows for "http://www.secretary.com/", "http://www.of.com/", "http://www.state.com/", "http://www.and.com/", and attempted to launch "http://forms.htm". If the same file (renamed) is launched using the path string "C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm" the file opens up correctly in Firefox. Clearly the presence of spaces in the file name is causing the problem.
I should also note that either path (with or without space characters) works properly if pasted directly into the Firefox URL path menu bar for a live instance of Firefox. The test path strings I used were:
C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm
C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm
Does anyone know anything about this problem or how to work around it (other than the obvious answer of taking the spaces out of the file name which is not possible for this application). It seems the problem is specific to Firefox. IE works properly if launched programmatically with spaces in the file name passed to it. I haven't tested other browsers yet.
Thanks!

If starting from ShellExecute works the same as starting from the command line then there are two options:<br>
Put everything inside double quotes<br>
'''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''"c:\test\svg test.htm"'''<br>
Convert to a valid url with file:// protocol and percentage-escaping the space<br>
'''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''file://c:\test\svg%20test.htm'''<br>

Similar Messages

  • Cant Launch Firefox from Mac with UTF8 International Domain name

    From a Mac running OSX 10.7, I Launch Firefox with a UTF-8 string containing an international domain name:
    I try to launch http://www.vihtilä.fi and Firefox responds: Can’t connect to http://www.vihtil\xc3\xa4.fi but the address bar string is correct. If I copy the address bar string, and paste it back into the address bar, then hit enter, the site opens. Safari and Chrome launch the correct site.
    \xc3\xc4 is the UTF8 representation of 'ä'
    Firefox on Windows works correctly, but I pass it a WCHAR (UTF16) name.

    That is weird.<br />
    The forum makes a correct and working link (www.vihtilä.fi) via preview, but changes the URL to the escaped encodeURI version when it is posted.
    I can't replicate what you are doing, but the page opens via a desktop shortcut with "<b>-url http://www.vihtilä<i></i>.fi</b>" command line parameter.

  • Inplace and side by side upgrade from windows 2003 64 bit R2 contains SSRS 2008 R2 to windows 2008 64 bit R2

    Hello All,
       Case 1 -In place upgrade
       I would like to do in place upgrade from windows 2003 64 bit R2 that contains SSRS 2008 to windows 2008 R2 64 bit. The upgrade would be happened at OS level not at SSRS level.
       I would like to know what are the  necessary steps should be taken  prior/during/post  upgrade from SSRS end  as we can not rollback if there is some issue with in place upgrade.
      Case 2-Side by side upgrade
      I would like to do side by side migration from windows 2003 32 bit  that contains SSRS 2008 to windows 2008 R2 64 bit. The side by side  would be happened at both OS level and  SSRS level.
      I would like to know what are the  necessary steps should be taken  prior/during/post side by side migration  from SSRS end.

    Before doing anything Take backups .
    In case of reporting services..
    Back up your symmetric key. For more information.
    Back up your report server databases and configuration files. For more information.
    Back up any customizations to existing Reporting Services virtual directories in IIS.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Thanks,
    Shashikant

  • I am having a problem when I try to select a photo or itunes song in Imovie or other programs. I get a window with grey lettering that says: "Open Itunes to populate this list" or "Open iphoto to see photos from your iPhoto library in this list.  I have t

    I am having a problem when I try to select a photo or itunes song in Imovie or other programs. I get a window with grey lettering that says: "Open Itunes to populate this list" or "Open iphoto to see photos from your iPhoto library in this list.  I have tried relaunching programs and nothing appears. Seemed to start happening a while back after one of my system upgrades.

    After a a lengthy conversation with Apple Tech. ($20), my problem seems to be solves. The Iphoto problem solved by trashing the plist file. The Itunes was more involved. We had to create a new Itunes folder and import the files into the new folder; and then import the playlists.

  • Hello&Help, Ive just swapped to firefox from Windows explorer, When i download music from (soundcloud) i cant seem to save the files in to my music documents, it goes striaght to windows player, Is there any way i could change the setttings?? Cheers

    Hello&Help, Ive just swapped to firefox from Windows explorer, When i download music from (soundcloud) i cant seem to save the files in to my music documents, it goes striaght to windows player, Is there any way i could change the setttings?? Cheers

    Hey Miramo, Ive got it sorted now. :-)
    Thanks for all ya help.

  • Launch firefox automatically windows 8.1 on startup

    how to launch firefox automatically windows 8.1 on startup

    I don't have Windows 8 or 8.1 handy to experiment, but based on the long heritage of use of the Startup folder, and a bunch of online articles, I think this is worth a try.
    Launch the File Explorer (new name for Windows Explorer) using whatever method you usually use. Based on its new search based metaphor, Microsoft suggest opening the charms bar on the right side and using the search box to find File Explorer. Or you probably can find it on the all programs screen down from the start page.
    Navigate to your personal Startup folder by pasting this in the File Explorer address bar and pressing Enter:
    %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
    Leave that window open and find your desktop. Select and copy your Firefox program shortcut. (Not sure this will work if it's pinned.)
    Then, click in the Startup folder and paste. Any luck?
    ''Note: An alternate way to start Firefox is to use the Task Scheduler. This has the nice feature than you can set a deferral period so that Windows has a minute or two to settle down before starting Firefox. However, this seems to be harder to find in Windows 8.''

  • How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    Clendenen02 wrote:
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    This Bash script will do it.
    Edit "PicDir" and "MovDir" to the location of your Folders
    (Note: The comment is written to the m4v file using xattr, so the Spotlight comment field appears blank in Finder, but the comment metadata is still indexed by Spotlight (If you add a Spotlight comment from Finder, it is stored both as an extended attribute and in a .DS_Store file)
    #!/bin/bash
    PicDir=$HOME/Desktop/Pictures
    MovDir=$HOME/Desktop/Movies
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" == "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [ -e "$MovDir"/$movname ]; then
                         xattr -w com.apple.metadata:kMDItemFinderComment "\"$comment\"" "$MovDir"/$movname
                   fi
              fi
         fi
    done

  • Problem launching Campaign from UI

    Hi All
    We have a problem launching campaign from UI screen,as when we try and launch the campaign from the screen
    following error is coming:
    Cannot display view BSPWD_BASICS/WorkAreaHostViewSet of UI Component CRM_UI_FRAME
    An exception has occurred Exception Class CX_SHM_OUT_OF_MEMORY - Insufficient Shared Objects Memory Available
    Method: CL_SHM_AREA=>_ATTACH_WRITE70
    Source Text Row: 2
    Error occurred during navigation
    An exception has occurred Exception Class CX_BSP_WD_RUNTIME_ERROR -
    Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
    Source Text Row: 165
    Cannot display view BSPWD_BASICS/BreadCrumbView of UI Component CRM_UI_FRAME
    An exception has occurred Exception Class CX_BSP_WD_INV_VA_ASSIGNMENT - Assigned view in view area Root could not be loaded.
    Method: CL_BSP_WD_HIST_MANAGER_BASE=>GET_VIEW_ASSEMBLY
    Please suggest what should i do to correct this(we are working on CRM 2007)
    Any help will be highly appreciated
    Regards
    Ashish

    Hi,
    Would you please show your solutions? I am facing the same problem. Thanks!
    BR,
    Hao

  • Problem – loading HTMLtext from a text file

    Problem – loading HTMLtext from a text file
    Hi, I have a dynamic text set up to render text as HTML and I
    am loading the text into the text object by using the code below.
    var loadText:LoadVars = new LoadVars();
    loadText.load("Nyheter.txt");
    loadText.onLoad = function(success){
    if(success){
    Nyheter_txt.htmlText = this.VariabelTekst;
    The textfile looks like:
    VariabelTekst=<p align
    ="Right">(13.11.2006)</p><p><b><font
    size="12">This is the tittle</b></p><p>Here
    comes the text</p>
    It works almost fine but the first problem is that the
    paragraph text in the textfile should be written in Norwegian. This
    involves some Nordic characters. By default these characters are
    just shown as small square in the text control when running the
    flash file. If I try to enter these characters in the textbox
    “Include these characters” within the dialog for
    embedding, the text within the bold tag of the text file is not
    shown when the text is rendered. It looks as if it effect the HTML
    rendering of the text. The Nordic characters are still not showing
    but instead the small square placeholders for the characters are
    gone.
    Am I doing it wrong, or is there a work around for solving
    this problem?
    Any ideas?
    TIRislaa

    Problem – loading HTMLtext from a text file
    Hi, I have a dynamic text set up to render text as HTML and I
    am loading the text into the text object by using the code below.
    var loadText:LoadVars = new LoadVars();
    loadText.load("Nyheter.txt");
    loadText.onLoad = function(success){
    if(success){
    Nyheter_txt.htmlText = this.VariabelTekst;
    The textfile looks like:
    VariabelTekst=<p align
    ="Right">(13.11.2006)</p><p><b><font
    size="12">This is the tittle</b></p><p>Here
    comes the text</p>
    It works almost fine but the first problem is that the
    paragraph text in the textfile should be written in Norwegian. This
    involves some Nordic characters. By default these characters are
    just shown as small square in the text control when running the
    flash file. If I try to enter these characters in the textbox
    “Include these characters” within the dialog for
    embedding, the text within the bold tag of the text file is not
    shown when the text is rendered. It looks as if it effect the HTML
    rendering of the text. The Nordic characters are still not showing
    but instead the small square placeholders for the characters are
    gone.
    Am I doing it wrong, or is there a work around for solving
    this problem?
    Any ideas?
    TIRislaa

  • When I start firefox browser an erroe message appear that contain this text "the procedure entry point_except_handler4_common could not be located in the dynamic link library msvcrt.dll" I am using windows XP

    when I start firefox browser an erroe message appear that contain this text "the procedure entry point_except_handler4_common could not be located in the dynamic link library msvcrt.dll" I am using windows XP in English
    == This happened ==
    Every time Firefox opened
    == start mozila firefox

    This issue can be caused by a problem with the file c:\windows\system32\dwmapi.dll
    The file dwmapi.dll is a Vista file and should not be present in Windows XP.
    See also [tiki-view_forum_thread.php?forumId=1&comments_parentId=417674]

  • HT4623 My computer is not taking the new update from itunes. It states that i do not have the requirements to finish the Install and that it was Installed incorrectly. I have never had any issue with any previous update regarding iTunes. What is the issue

    My computer is not taking the new update from itunes. It states that i do not have the requirements to finish the Install and that it was Installed incorrectly. I have never had any issue with any previous update regarding iTunes. What is the issue?

    Hi there Double2D,
    You may find the troubleshooting steps in the article below helpful.
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    -Griff W. 

  • Received File send with file name to destination side

    Hi All,
    Here I have used FILE adapter in Receive location and WCF-BasicHttp adapter in send ports.
    Requirment is should be able to send the file name also along
    with the file to destination from BizTalk.
    No orchestrations in this project. DynamicSendPassThru sendport. Please find the below screenshot for send port properties.
    How can i fix this please assist me on this.
    Thanks & Regards,
    Vasu

     Hi Osman,
    below code is custom pipeline code. and what code and where can i add the code.
    regarding send the file with file name from BizTalk to OutBound transport location.
    Please assist me on this.I'm not aware coding part. 
    publicMicrosoft.BizTalk.Message.Interop.IBaseMessageExecute(Microsoft.BizTalk.Component.Interop.IPipelineContextpc,
    Microsoft.BizTalk.Message.Interop.IBaseMessageinmsg)
                System.Diagnostics.
    Debug.WriteLine("Inside
    SendFileRenameWithDate Pipeline",
    "SLNG.BizTalk");
    IBaseMessageContextmessageContext = inmsg.Context;
    // if the transport type is file for outbound, then change the add in the date in the file name.
    stringadapterType = (string)inmsg.Context.Read("OutboundTransportType",
    "http://schemas.microsoft.com/BizTalk/2003/system-properties");
    // The file name in the file adapter must contain '%SourceFileName%', e.g. CB_%SourceFileName%.xml
    if(adapterType ==
    "FILE")
    // Retreive the file name from the message context
    //object obj = messageContext.Read("FileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties");
    //string customSendFileName = obj.ToString();
    //System.Diagnostics.Debug.WriteLine("FileName:" + customSendFileName, "SLNG.BizTalk");
    // Append with date in ddMMyyyy_HHmmss format
    stringcustomSendFileName =
    if(string.IsNullOrEmpty(DateFormat))
                        customSendFileName =
    DateTime.Now.ToString("yyyyMMdd_HHmmss");
    else
                        customSendFileName =
    DateTime.Now.ToString(DateFormat);
                    System.Diagnostics.
    Debug.WriteLine("FileName:"+
    customSendFileName, "SLNG.BizTalk");
    // Write back with new file name to the message context
                    messageContext.Write(
    "ReceivedFileName",
    "http://schemas.microsoft.com/BizTalk/2003/file-properties",
    customSendFileName);
    //if (messageContext.IsPromoted("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties")
    == false)
    //    messageContext.Promote("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties",
    customSendFileName);
    //messageContext.Write("FileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties", customSendFileName);
                System.Diagnostics.
    Debug.WriteLine("Going
    off SendFileRenameWithDate Pipeline",
    "SLNG.BizTalk");
    returninmsg;
            #endregion
    Thanks & Regards,
    Vasu

  • When using the migrate tool to migrate from windows to mac, can you use ethernet to connect the computers to each other?

    When using the migrate tool to migrate from windows to mac, can you use ethernet to connect the computers to each other? In the Migration tool, I was only given the option of choosing the computer when it appeared on the same network, and didn't see an option to connect them to each other. Even though they're both connected to the same network with a wired connection, the migration is painfully slow.

    Yes. The following quotation is from About Windows Migration Assistant
    These are the preferred network connections, in order:
    Use a CAT6-certified Ethernet cable that is in good condition to connect the Ethernet port of the PC directly to the Ethernet port of the Mac or Ethernet adaptor (USB or Thunderbolt). You shouldn't use an Ethernet cable that has any kinks in it or is missing connector tabs.
    Use CAT6-certified Ethernet cables that are in good condition to connect the Mac and PC to your home network router/hub/switch. You shouldn't use an Ethernet cable that has any kinks in it or is missing connector tabs.
    For wireless, use the fastest wireless signal possible (802.11n 5Ghz). Try to have the PC, Mac, and the wireless access point all in the same room close to each other.

  • How to print contact sheet with file names

    I want to print a photo contact sheet with file names. Is this possible with any standard Mac app?

    I'd like to print the Album name at the top of each contact sheet I produce from that album - is this possible within iphoto '08 or do I need to print to a pdf and then edit that pdf with acrobat pro for example.

  • Hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem pleas

    hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem please
    and this is an pic for the problem

    There is some troubleshooting for 0xE8 error codes on this page : http://support.apple.com/kb/TS3221 - you could see if anything on that page fixes it

Maybe you are looking for

  • How to fetch newly updated item data in BADI  ME_PROCESS_PO_CUST?

    Hi Everyone, While changing a PO, I have a requirement where I need to only modify fields of newly added items of a purchase order and keep the values of existing items as it is. I have implemented the BADI ME_PROCESS_PO_CUST for this. but not able t

  • Is there a maximum input file size Flash CS3 Video Encoder can handle?

    I am stuck with this encoder and attempting to "TRIM" an MPG file to specific time in/time out points for CBT course (the video is close to 500 meg). When I click the "Start Queue" it zips through with a bunch of black area then slows and only gives

  • Can you load dvds into itunes and watch them on the iphone?

    i have many dvds and would like to watch them on my iphone/ipod touch while traveling.  is that possibe nowadays?

  • ADF Faces setParent() method

    Hi, I'm trying to build an ADF Faces component tree dynamically. In particular, I'm trying to add an HtmlRowLayout to an HtmlTableLayout. Although my code appears to run without throwing errors, the <TABLE> tag that gets generated is empty. I'm not s

  • Music list in songs view always goes back to top...

    In previous versions of iTunes, when swapping between playlists (or building them, for example), every time you went back to the music folder in the library, you get back to where you left off. Now, it seems that if you switch out of the Music folder