Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Batch files auto unzip

Has anyone come across this problem in XP
with creating a batch file, by first creating a text file
then closing it. Then output using wzunzip.exe as
follows:-

Open "D:\WMSCall\extract.txt" For Output As #1
Print #1, "D:\WMSCall\wzunzip.exe
D:\WMSCall\ZippedFiles\" & Carrier & "\" & fileStr & _
FileYearStr & ".zip
D:\WMSCall\ZippedFiles\All\"
Close #1
'Rename .TXT to .BAT to enable remote execution
Name "D:\WMSCall\extract.txt"
As "D:\WMSCall\extract.bat"
'Run extract.bat
runBat = Shell("D:\WMSCall\extract.bat")

When trying to run this in xp it does not work.
Can anyone offer any ideas! thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Batch files auto unzip

Instead of making a .bat file, maybe you could just shell out to the unzipping
program.

Ron de Bruin has some code to do the opposite (zip--not unzip) at:

http://www.rondebruin.nl/zip.htm

maybe you can pick it apart and modify parts of it.



Jonathan Jones wrote:

Has anyone come across this problem in XP
with creating a batch file, by first creating a text file
then closing it. Then output using wzunzip.exe as
follows:-

Open "D:\WMSCall\extract.txt" For Output As #1
Print #1, "D:\WMSCall\wzunzip.exe
D:\WMSCall\ZippedFiles\" & Carrier & "\" & fileStr & _
FileYearStr & ".zip
D:\WMSCall\ZippedFiles\All\"
Close #1
'Rename .TXT to .BAT to enable remote execution
Name "D:\WMSCall\extract.txt"
As "D:\WMSCall\extract.bat"
'Run extract.bat
runBat = Shell("D:\WMSCall\extract.bat")

When trying to run this in xp it does not work.
Can anyone offer any ideas! thanks in advance


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Batch files auto unzip


Dave

Thanks for the reply will advise or post the answer, when found

Cheers
Jonathan


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Batch files auto unzip

Hi Jonathan

Maybe this is useful
http://www.rondebruin.nl/unzip.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Jonathan Jones" wrote in message ...

Dave

Thanks for the reply will advise or post the answer, when found

Cheers
Jonathan


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I batch convert 97-2003 .xls files to 2007 .xlsx files Dave Nuttall Excel Discussion (Misc queries) 4 August 3rd 09 11:38 PM
zip/unzip excel files SHANTA MENON Excel Discussion (Misc queries) 3 July 30th 08 10:10 PM
unzip/zip xlsx files burrowsUW Excel Discussion (Misc queries) 3 March 11th 07 06:50 PM
How do I Unzip the files in "ExcelMap-China-Region.Zip" into your Sukesh New Users to Excel 1 December 8th 06 06:12 PM
Batch conversion of XP files to 97 files AG Excel Discussion (Misc queries) 2 October 2nd 05 02:08 PM


All times are GMT +1. The time now is 03:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"