%localappdata%, Foxypreviewer and pdf file removal.

I have had this issue with Foxypreviewer generating an error creating pdf file, and I traced it to the file existing in the temp directory. 
I would like to remove the pdf file from the temp folder before foxy tries to generate it.
How should I refer to %localappdata%\temp from within foxpro? I tried but I think foxpro doesn't understand it.
Thanks.

Getenv("TEMP") should give that folder.
Besides
loShell = CreateObject('Shell.Application')
loShell.NameSpace(folderconstant)
can give some system folders and there are further APIs, some working up to XP, some from Vista and highher.
Bye, Olaf.
Olaf Doschke - TMN Systemberatung GmbH http://www.tmn-systemberatung.de

Similar Messages

  • Web Clipping portlet and pdf files

    Hi,
    I have created a web clipping portlet which just includes a set of links to HTML and pdf files. When I try to open a link to a pdf file the web clipping portlet fails, but links to the html content work fine
    Is it possible using web clipping to open the links to the pdf files and display them in the web clipping portlet ?
    Thanks,

    Hi,
    I have created a web clipping portlet which just includes a set of links to HTML and pdf files. When I try to open a link to a pdf file the web clipping portlet fails, but links to the html content work fine
    Is it possible using web clipping to open the links to the pdf files and display them in the web clipping portlet ?
    Thanks,

  • Hyperlinks to XLS, DOC, and PDF files that are included in a .chm file work intermittently.

    SUMMARY
    Hyperlinks to XLS, DOC, and PDF files that are included in a
    .chm file (and the Baggage Files) only work intermittently. The
    only solution appears to be deleting the Temporary Internet Files.
    PROBLEM
    1. I place the XLS, DOC, or PDF file in the Windows
    sub-directory that corresponds to the RoboHelp project sub-folder
    where the topic in which I’ll place the hyperlink exists.
    2. I open the help project in RoboHelp HTML.
    3. I right-click on the project’s Baggage Files
    sub-folder that corresponds to the Windows sub-directory in which I
    placed the XLS, DOC, or PDF file (in step 1).
    4. I import the XLS, DOC, or PDF file.
    5. I open the topic in which I’m going to place the
    hyperlink in the WYSIWYG editor.
    6. I “drag and drop” the Baggage File into the
    topic (in the WYSIWYG editor) to create a link to it.
    7. I save the changes and then generate HTML (.chm) help.
    8. I open the .chm file and click the hyperlink. The XLS,
    DOC, or PDF file may or may not open.
    9. When the hyperlink works correctly, for DOC and XLS files,
    a “File Download – Security Warning” dialog box
    appears asking, “Do you want to open or save this
    file?”. The buttons that are available are
    “Open”, “Save”, and “Cancel”.
    These buttons work then as one would expect. (When the hyperlink
    works correctly for a PDF file, it simply opens the PDF file in a
    new window; there’s no prompt to save, open, or cancel.)
    10. When a hyperlink does NOT work, for DOC, XLS, and PDF
    files, no dialog box or other visual message is displayed. Instead,
    the sound that is associated with the “Exclamation”
    program event is played (the “Windows XP
    Exclamation.wav” file is the WinXP default).
    Other Notes:
    - The hyperlinks ALWAYS work when I view a topic using the
    “View Selected Item” function (Ctrl+W) in the RoboHelp
    HTML project.
    - Once a hyperlink stops working, it will not start working
    again until I delete all the Temporary Internet Files.
    - A hyperlink will stop working even if Internet Explorer
    (iexplore.exe) is closed the entire time.
    WORKAROUND
    Through trial and error, I have discovered that if a
    hyperlink stops working, I can get it to work again using the
    following steps:
    1. Leave the .chm file open.
    2. Open Internet Explorer.
    3. Click Tools>Internet Options….
    4. From the “Internet Options” dialog box, select
    the “General” tab.
    5. Under the “Temporary Internet Files” section,
    click the “Delete Files…” button.
    6. From the “Delete Files” dialog box, select
    “Delete all offline content” and then click
    “OK”. The files are deleted and the “Delete
    Files” dialog box closes.
    7. Click “OK” to close the “Internet
    Options” dialog box.
    8. Without closing Internet Explorer and without re-starting
    the .chm file, all the hyperlinks that didn’t work before
    will now work.
    GENERAL SYSTEM INFORMATION
    - Windows XP Pro, SP2
    - Internet Explorer 6.0.2900.2180
    - RoboHelp X5, 5.0.2 Build 801
    - HTML (.chm) help project files exist on my local machine
    - HTML (.chm) help file is run from my local machine
    - Project is under RoboSource version control
    TEMPORARY INTERNET SETTINGS
    - “Check for newer versions of stored pages” is
    set to “Automatically”
    - “Current location” for the Temporary Internet
    files folder is set to “C:\Documents and Settings\My
    Username\Local Settings\Temporary Internet Files\”
    - “Amount of disk space to use” is set to
    “594” MB
    “View Files…”
    - An XLS or DOC file will be listed here if I click its
    hyperlink and then click either “Open” or
    “Save” from the “File Download – Security
    Warning” dialog box.
    - A file will appear here even if I click “Save”
    and then click “Cancel” from the subsequent “Save
    As” dialog box.
    - If I click “Cancel” from the “File
    Download – Security Warning” dialog box, the file does
    not appear in the Temporary Internet Files folder.
    - When a file does appear in the Temporary Internet Files
    folder, its Internet Address is displayed similar to the following:
    “ms-its:C:\PrimaryProjectFolder\ProjectName.chm::/SubFolderName/FileName.xls”
    “View Objects…”
    Here’s a list of all the program files that appear:
    - “Microsoft Office Template and Media Control”
    (Last Accessed 12/13/06) (Version 12,0,6024,0)
    - “Shockwave ActiveX Control” (Last Accessed
    12/14/06) (Version 10,1,4,20)
    - “Shockwave Flash Object” (Last Accessed
    12/18/06) (Version 9,0,28,0)
    - “Windows Genuine Advantage Validation Tool”
    (Last Accessed 12/14/06) (Version 1,5,722,0)
    - “WUWebControl Class” (Last Accessed 12/13/06)
    (Version 5,8,0,2469)
    Today is 12/18/06 so the only program file that is listed as
    having been “Last Accessed” today is the
    “Shockwave Flash Object”.
    REQUEST FOR HELP
    I really want to include certain PDF, DOC, and XLS files in
    their native format in a .chm file. However, I need a better
    solution to my problem than the one I discovered. What I really
    want is to avoid the entire problem altogether.
    Have anyone seen this before or have any suggestions?

    You wont be able to do that. The embedded objects would appear as images only.

  • I am unable to open the microsoft word and excel and pdf files after upgratding to 4.3.3 os version

    I am unable to open the microsoft word and excel and pdf files after upgratding to 4.3.3 os version. I was able to access them in 4.3.1 .
    Can anybody tell when is this getting resolved.

    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile
    Your old Profile is located here in Vista & Win7: <br />
    ''drive'':\Users\''Windows login user name''\AppData\Roaming\Mozilla\Firefox\Profiles\''profile_name''

  • Trouble opening jpeg and pdf files.

    I have a fully current version of Photoshop (ICloud).  When attempting to open some jpeg files and pdf files, they remain ghosted and will not open.  I think it may have to do with the settings in the 'open' window but i don't know what to do.  ?????

    …and no one knows how to help you until you provide details.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers: 
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Why is my word and pdf files so large? How can I reduce the size?

    My document contains mostly photos from a database via a path to the actual jpeg photos on disk.
    There are 39 jpeg photos + a small amount of text with each photo.
    The 39 jpeg photos on the disk add up to be 5.79 mb.
    If I export the crystal reports document as [Microsoft Word (97-2003) Non Editable] the, the file size is 36.8 mb.
    If I export the same data as a [Microsoft Word (97-2003) Editable] the file size is only 3.1 mb.
    That is a difference of 33.7 mb! Why?
    Also, when I export the same data to a PDF file it is much larger than I think it should be; 12.7 mb.
    Why is my word and PDF files so large?
    How can I reduce the size of the word and PDF files? (without reducing the photo quality).
    Are there any tools to post process the Word or PDF files to reduce the file size?

    You can't, extra size is to hold the details

  • When in mode dev to develop my website, I can't open buttons and PDF files to check my changes or somebody else's changes. What is wrong ? (I updated  Adobe Reader)

    when in mode dev to develop my website, I can't open buttons and PDF files to check my changes or somebody else's changes. What is wrong ? (I already updated  Adobe Reader)

    Oh no... NOT THE 99-PAGER!!! Anything but THAT!!!

  • Word and Pdf files with Forms

    Hi,
    I want to store *.doc and pdf files in database and use them in forms 9i .
    My customer wants to open,edit and save the files from the database through forms 9i application.
    Can anyone please help me in process of storing the files into database and access them from forms 9i .
    Thanks
    Sai

    Hello,
    <p>Here is one solution.</p>
    Francois

  • How do I keep my macbook pro from automatically rearranging my folders and PDF files on my desktop

    How do I keep my macbook pro from automatically rearranging my folders and PDF files on my desktop?  It seems to happen a lot after I've hooked my laptop to my Thunderbolt in my office and then I unhook my laptop to go present at a clients of taking my laptop home to work.  Every once in a while if even places all of my folders and PDF files in the far upper left corner of my screen.  Needless to say, having to constanly rearrange my desktop is extremly annoying and would love to know what the fix is for this problem.  Thank you in advance for any help offered!

    Thanks for the tip "baltwo", unfortunately my desktop settings were already set to NONE.  I've had one of my IT guys here this moring helping me look through all of this and we're at a wall trying to figure out why it's doing this.  This morning when I docked to the Thunderbolt all my folders and PDF files are in the upper lefthand corner stacked on top of each other almost out of view.  If I go to settings, displays, and swith to mirroring, all the folders and files go right back to where they're set up on my MacBook desktop, but I lose the ability to utilize the entire screen of the Thunderbolt.  Very frustrating to say the least and after searching through and reviewing several forums, Apple is very much aware of this issue and seems to be keeping silent on the issue.  Hoepfully they'll launch a fix soon!
    THANKS again for the tip, it's much appreciated!

  • Can't Edit .txt and .pdf files in EP6 KM

    We just migrated our last application from EP5 to EP6, and now we're having problems with not being able to edit .txt and .pdf files.  The problem is that the files will only open in the browser rather than in their native programs (wordpad/notepad, Adobe Editor, etc).  Surely others have encountered this issue.  Are there any solutions short of installing 3rd party tools?

    Hi Jeff,
    Which program opens on a link depends on two things:
    1. The MIME-Type that is sent from the server together with the resource (file) you requested by clicking a link
    2. Your Windows Setting defining which local application should be used for which MIME Type.
    So there may be two things happening:
    1. EP 6 is sending other (or no) MIME Types with the KM resources. You can check this in your KM configuration. See KM -> Services -> MIME Service
    2. Your OS got the settings for apps/MIMEs changed. This happens e.g. if you changed on Win XP to SP 2.
    So here may be a solution:
    Go to Windows Explorer->Tools->Folder
    Options->File Types, click on the TXT extention, and click
    "Delete".  Then proceed to recreate the TXT file type with the
    default app you want (notepad). 
    IE will open your app (notepad) for links to text files from that point
    on.
    So, to check this for text files, open the registry editor, go to
    "My Computer\HKEY_CLASSES_ROOT\.txt" (or .TXT), and check for a 'String
    Value' with the value "text/plain".
    This should work with any file type, as long as you use the right MIME Type (See KM configuration / MIME Services).
    HTH,
    Carsten

  • The PDF file and slideshow view corrupted using iPhoto. Macbook air only get corrupted slideshow and Mac Mini both slideshow and PDF file is corrupted.

    The PDF file and slideshow view corrupted using iPhoto. Macbook air only get corrupted slideshow and Mac Mini both slideshow and PDF file is corrupted.

    Saving as a PDF file for some users have been a problem.  If you boot into  Safe Mode and run iPhoto you can create undamaged PDF files.  We don't know why the problem but this is a workaround.
    This problem prevents many from ordering books, calendars and cards since iPhoto creates PDF file of them for uploading and printing.  Booting into Safe Mode lets them successfully order those items.

  • I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF file

    I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF files on my iphone?

    Apple never bopthered to explain that this would happen
    Your iDisk is still accessible after moving to iCloud in exactly the same way as before. Nothing is deleted until June 30th 2012.
    , so I could easily have lost ALL of the files I kept on iDisk.
    No, you couldn't. Firstly, nothing was deleted from your iDisk. Secondly, any files stored on your iDisk should never be your only copy. Even if your iDisk spontaneously combusted, you should keep local backups elsewhere.
    Does Apple WANT people to move their storage elsewhere and stop paying Apple for it?
    Yes. Apple doesn't provide such a service anymore, nor are you paying them for it.
    Apple has made no effort to suggest remedies for the problem it has given iDisk users
    They've provided instructions on how to download your files from your iDisk. What you do with them after that is your choice.

  • Tiff image and pdf file

    Hi,
    I am working with project that requires showing different types of images and pdf files using oracle ADF components. It was so easy to show jpeg and gif, for example, using objectMedia. I tried to use the same component, objectMedia, to show tiff image, but it didn't work and I was unable to find suitable component to show pdf file.
    Is there anyone some can help me in showing tiff image and pdf file.
    Alice

    Correction, PDF is not required to be geneated, but displayed.
    Display PDF and tiff with af:objectImage ?
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/objectImage.html

  • I don't know how to install Mp3 and PDF file from my computer to IPhone?

    I don't know how to install Mp3 and PDF file from my computer to IPhone? Please who can help me. Thanks

    Please Get the iPhone User Manual for iOS 5.
    Put such files into iTunes, sync to phone. Everything syncs from iTunes to phone.

  • We're sorry, but this file is not a valid filetype. GIF, JPEG and PDF files are accepted. Please try again. this is the message its shows when i upload proper format. i do not whom i should ..........

    We're sorry, but this file is not a valid filetype. GIF, JPEG and PDF files are accepted. Please try again.
    We're sorry, but this file is not a valid filetype. GIF, JPEG and PDF files are accepted. Please try again.
    We're sorry, but this file is not a valid filetype. GIF, JPEG and PDF files are accepted. Please try again.
    We're sorry, but this file is not a valid filetype. GIF, JPEG and PDF files are accepted. Please try again.
    We're sorry, but this file is not a valid filetype. GIF, JPEG and PDF files are accepted. Please try again.
    We're sorry, but this file is not a valid filetype. GIF, JPEG and PDF files are accepted. Please try again.
    We're sorry, but this file is not a valid filetype. GIF, JPEG and PDF files are accepted. Please try again.We're sorry, but this file is not a valid filetype. GIF, JPEG and PDF files are accepted. Please try again.

    I got uploaded after many ways. Just logged in windows PC and opened Internet explorer and uploaded it worked.

Maybe you are looking for