Y
Yuvraj
Hi Guys,This was not happening when we were using winzip.
The problem is i first get the zipped file from server to Temp using
some method, then i try and unzip it using
obj.Namespace(sourceFileName) Namespace(DestinationFilename).Items
the file is copied or unzipped to the Temp folder
now i try to use the function having the code like
if filedownloaded = true
wasFDownloaded = True
If openBookF = True Then
On Error Resume Next
Set filedownload = Application.Workbooks.Open
(filename:=localFilename, ReadOnly:=True, _
AddToMru:=False) /////This line then creates a Temporary folder 1
and ////places xls file in zipfile again which was not happening
before
On Error GoTo 0
Else
filedownloaded = localFilename
End If
End If
I want to avoid the creation of temp folder:
The parameters used in this line of code
obj.Namespace(sourceFileName) Namespace(DestinationFilename).Items
cannot avoid the creation of same file inside TemporaryFiolder 1, but
i want my application to open the file which is already in the Temp
copied but not create a Folder with Temporary Folder1 name everytime
it tries and open the file unzipped using the above two code.
Any help and iseas will be appreciated.
Regards,
Yuvraj
The problem is i first get the zipped file from server to Temp using
some method, then i try and unzip it using
obj.Namespace(sourceFileName) Namespace(DestinationFilename).Items
the file is copied or unzipped to the Temp folder
now i try to use the function having the code like
if filedownloaded = true
wasFDownloaded = True
If openBookF = True Then
On Error Resume Next
Set filedownload = Application.Workbooks.Open
(filename:=localFilename, ReadOnly:=True, _
AddToMru:=False) /////This line then creates a Temporary folder 1
and ////places xls file in zipfile again which was not happening
before
On Error GoTo 0
Else
filedownloaded = localFilename
End If
End If
I want to avoid the creation of temp folder:
The parameters used in this line of code
obj.Namespace(sourceFileName) Namespace(DestinationFilename).Items
cannot avoid the creation of same file inside TemporaryFiolder 1, but
i want my application to open the file which is already in the Temp
copied but not create a Folder with Temporary Folder1 name everytime
it tries and open the file unzipped using the above two code.
Any help and iseas will be appreciated.
Regards,
Yuvraj