Re: FSO / DateLastModified Problem

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: name (nospam_at_user.com)
Date: 11/27/04


Date: Sat, 27 Nov 2004 02:36:12 -0500

Look, everything on the left site of your editor, screen or OE panel
needs to be captured first. In vbs you use DIM or something.
------------------------------------------
In javascript you use nothing since it (sys) looks it up the chain
and attaches it to a higher class, e.g. WSH or WScript.
----------------------
If you look closely in you example, you put

"nvcbin " and "nvcincr "

in the wild.

THAT will not work. [NOT in you FIRST post]
---------------

The time it took you to cut and paste "> [...cut...]"

it would have taken 800.000.000 real Indians [non us americans]
to apply for your job.

============

And like the person above observed. It still is a property.

You can wreck a car or dive an airplane.

But their properties, a motor serial, a license plate, or a black box won't
disappear.

//Thanks Martin,Dr. John, Gerry

"Martin Aepli" <martin.aepli@nospam.local> wrote in message
news:ug2Q$ti0EHA.3808@tk2msftngp13.phx.gbl...
> Thanks for the answer. Here is a code snipped:
>
> [...cut...]
> Set FSO = CreateObject("Scripting.FileSystemObject")
> Set Sh = CreateObject("WScript.Shell")
>
> normanpath = Sh.RegRead("HKLM\SOFTWARE\Norman Data Defense
Systems\NsePath")
>
> set f1 = FSO.GetFile(normanpath & "\" & "nvcbin.def")
> set f2 = FSO.GetFile(normanpath & "\" & "nvcincr.def")
>
> 'get datelastmodified
> nvcbin = f1.dateLastModified
> nvcincr = f2.dateLastModified
>
> WScript.Echo nvcbin
> WScript.Echo nvcincr
>
> [...cut...]
> "McKirahan" <News@McKirahan.com> wrote in message
> news:oI%od.454783$D%.392830@attbi_s51...
> > "Martin Aepli" <martin.aepli@nospam.local> wrote in message
> > news:uK5oG9f0EHA.2016@TK2MSFTNGP15.phx.gbl...
> > > Dear NG
> > >
> > > I've got the following problem. When i use the function
DateLastModified
> > > then i will receive sometimes e.g. '11.12.2004', or '11/11/2004', or
> > > '11/11/04',
> > > depending on the system.
> > >
> > > That's NOT my problem - my problem are the following values e.g.
> '11/11/04
> > > 1' or
> > > '11/11/04 0'.
> > >
> > > Why are there sometimes ones (1) and zeros (0) in the results?
> > > I saw '_1' or '_0' too.
> > >
> > > Please help fast
> > >
> > > Thank you very much
> > > Martin
> >
> >
> > "DateLastModified" is a property not a function.
> >
> > How are you using it -- show us the code!
> >
> > Does the following work for you?
> >
> > Option Explicit
> > '*
> > Const cVBS = "LastMod.vbs"
> > Const cFIL = "LastMod.vbs"
> > '*
> > Dim strMSG
> > strMSG = "DateLastModified of '" & cFIL & "' = "
> > '*
> > Dim objFSO
> > Set objFSO = CreateObject("Scripting.FileSystemObject")
> > Dim objGFI
> > Set objGFI = objFSO.GetFile(cFIL)
> > strMSG = strMSG & objGFI.DateLastModified
> > Set objFSO = Nothing
> > Set objGFI = Nothing
> > '*
> > MsgBox strMSG,vbInformation,cVBS
> >
> >
>
>



Relevant Pages

  • Re: HttpHandler
    ... realized that some Javascript that used to access a parent frame's property, ... The code that forwards the POST request is ... Dim newStream As Stream = request.GetRequestStream ... ' Get the stream associated with the response. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HttpHandler
    ... Response.Redirect does not use JavaScript. ... redirect header instruction to the response. ... "Kevin Spencer" wrote: ... Dim request As HttpWebRequest ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Excel Worksheet Select (Activate ?) in VBS
    ... I understood VBS does not have datatypes, everything is a variant (Or Object ... String" statement, since it gives me an error there. ... Dim argsNamed, argsUnnamed ... set objWorkbooks = objExcelApp.Workbooks.Open) ...
    (microsoft.public.excel.programming)
  • RE: Excel Worksheet Select (Activate ?) in VBS
    ... String" statement, since it gives me an error there. ... XLS file ontop of this vbs script, and it will display a list of all the ... Dim argsNamed, argsUnnamed ... set objWorkbooks = objExcelApp.Workbooks.Open) ...
    (microsoft.public.excel.programming)
  • Response-Befehl verhindert Javascript-Ausführung?
    ... Ausführung von Javascript unterbricht. ... #End If ... Dim sessionname as String = "" ...
    (de.comp.lang.javascript)