Jump to content

accessing a file from a zip file list

Recommended Posts

i access a list of files in a zip document. i manualy  open one which is a word document

i want to access the document with a script using the following code

$wordfile = "c:\users\user\desktop\" & $ftitle  ; where $ftitle is picked up from the document title

$oword = _word_create()

$owordapp = _word_docattach ($oword, $ftitle, "filename")        

if @error then 


$odoc = _word_docopen($owordapp, $wordfile)

msgbox(0,"",@error)  ; error returned is a 2

if i manually save the file to the desktop then everything works

for some reason the open can not find the file that is open on the desktop





Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...