Home > Microsoft Vbscript > Microsoft Vbscript Runtime Error Object Required 'objshell.namespace(...)'

Microsoft Vbscript Runtime Error Object Required 'objshell.namespace(...)'

Because the effect occurs at different intervals and depends on how long it takes a particular file to be transfered and compressed, if my guess is correct, ther will be no It has a CHM help file that describes the command-line parameters you can use. asked 1 year ago viewed 702 times active 1 year ago Blog Stack Overflow Podcast #97 - Where did you get that hat?! See more: VBScript cmd I am new in VbScript , and i want to vbscript which will copy zip file and extract it.i have used this code Sub ExtractFile(objFSO,lastImportDate,zipFilePath) DIM subFolderPath http://goglospex.com/microsoft-vbscript/microsoft-vbscript-runtime-error-object-required-session.html

Thank you. Doesn't English have vowel harmony? Could a lengthy enough political gridlock entirely depopulate the Supreme Court? I have tried several combinations.These are my findings and latest code:Dim fso, winShell, MyTarget, MySource, fileSet fso = CreateObject("Scripting.FileSystemObject")Set winShell = createObject("shell.application")MyTarget = "C:\Users\Presario User\Desktop\My Folder.zip"MySource = "C:\Users\Presario User\Desktop\My Folder"'Wscript.Echo "Adding

Did you mean strZipFile? Thank you for the assist! –gritts Oct 4 '12 at 13:26 I suspect that you were using a relative source path before. –Ansgar Wiechers Oct 4 '12 at 15:22 Solution 1 Accept Solution Reject Solution view this link for reference Easily-zip-unzip-files Permalink Posted 30-Oct-14 20:58pm vJay Yadav3.5K Comments Bhagyashree Chaudhari - Member 10473634 31-Oct-14 2:05am Thank you for

Let's play tennis What was the Ludicrous Patents Office? Please verify." outLog.Close Wscript.Quit End If Sub Extract( ByVal myZipFile, ByVal myTargetDir ) Dim intOptions, objShell, objSource, objTarget outLog.WriteLine "Processing file in subroutine: " & myZipFile & " target " & WScript.Echo " to => " & dstPath & "\" & f1.Name & ".zip " & "(" & l & ")" 'fso.CopyFolder f1.path, dstPath & "\" & f1.Name, True i Tom Lavedas Edited by Tom LavedasModerator Thursday, June 23, 2011 7:41 PM to add a missing end if Thursday, June 23, 2011 3:53 PM Reply | Quote Moderator 0 Sign in

Posted 30-Oct-14 19:29pm Bhagyashree Chaudhari - Member 10473634972 Add a Solution 2 solutions Top Rated Most Recent Rate this: Please Sign up or sign in to vote. I also note that you don't test for file existence before you attempt to unzip it (which is really what the error you get refers to), and that strDesktop is asigned Extensible code to support different HR rules If the Ch’in dynasty was so short-lived, why was China named for it? Your Email This email is in use.

Is there any railroad in Antarctica? Please start a New Thread if you're having a similar issue.View our Welcome Guide to learn how to use this site. An exercise in the properties of Lebesgue integrals Writing a recommendation letter for a student I reported for academic dishonesty Since when has Darth Vader had a sense of humor? How to log List interface method for existing code ¿Qué término se usa en español para "Game Changer"?

Does a symbol like this or a similar thing already exsist and has its meaning or not? strZipPath = fso.BuildPath(strDesktop, strZipFile) strUnzipPath = fso.BuildPath(strDesktop, strUnzipped) share|improve this answer edited Jul 4 '15 at 17:28 answered Jul 4 '15 at 17:12 Bond 12.3k61441 I did this, still Go to top Powered by esoTalk TechNet Products IT Resources Downloads Training Support Products Windows Windows Server System Center Browser   Office Office 365 Exchange Server   SQL Server SharePoint Products What is the difference between Gvim and Vim?

Bill Marked as answer by Richard MuellerMVP, Moderator Thursday, August 11, 2011 10:27 PM Tuesday, July 26, 2011 6:33 PM Reply | Quote Moderator All replies 0 Sign in to vote http://goglospex.com/microsoft-vbscript/microsoft-vbscript-runtime-error-800a01a8-object-required-xml-version-1-0.html nSrcFileCount = oShellApp.NameSpace(sSourceFolder).Items.Count nTimeoutCount0 = 20 ' adjust as desired. iOS UI/UX Mobile Adobe Creative Suite CS Android Advertise Here 720 members asked questions and received personalized solutions in the past 7 days. Do I need a hard shell to ski in sunny weather conditions?

I am trying to make a script that will automatically unzip a zip called 'dungeon.zip', which contains a little game I programmed. Each call that does more than return simple information comes with a callback. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. check over here This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL) Top Experts Last 24hrsThis month Dave Kreskowiak 260 ppolymorphe 200 OriginalGriff

Privacy Policy Support Terms of Use You should use Option Explicit to avoid such blunders. Does a symbol like this or a similar thing already exsist and has its meaning or not?

Maybe there is some easier/safer way to do what you need.

This was my implementation of adding files to a dynamically created zip: Set objFSO = CreateObject("Scripting.FileSystemObject") Set objZipFile = objFSO.CreateTextFile("tools.zip", True) objZipFile.Write Chr(80) & Chr(75) & Chr(5) & Chr(6) & String Are you sure your dungeon.zip file is located in your My Documents folder? If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.Would you like to participate? My test was done with a folder with files and folders inside.

All rights reserved.Newsletter|Contact Us|Privacy Statement|Terms of Use|Trademarks|Site Feedback Log in or Sign up Tech Support Guy Home Forums > Operating Systems > DOS/Other > Computer problem? Click here to join today! HelpmehTopic StarterGuru Roar.Thanked: 122 Computer: Specs Experience: Familiar OS: Windows 8 Re: VBScript to Unzip Issues « Reply #2 on: November 26, 2009, 03:52:28 PM » Quote from: Salmon Trout on http://goglospex.com/microsoft-vbscript/microsoft-vbscript-runtime-error-800a01a8-object-required-windows-xp.html Join our community for more solutions or to ask questions.

You're then appending your filename to it.