Re: FSO / DateLastModified Problem
From: name (nospam_at_user.com)
Date: 11/27/04
- Next message: name: "Re: WSH in VS.NET 2003?"
- Previous message: Al Dunbar [MS-MVP]: "Re: Reading a text file"
- In reply to: Martin Aepli: "Re: FSO / DateLastModified Problem"
- Next in thread: Dave Methvin: "Re: FSO / DateLastModified Problem"
- Messages sorted by: [ date ] [ thread ]
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
> >
> >
>
>
- Next message: name: "Re: WSH in VS.NET 2003?"
- Previous message: Al Dunbar [MS-MVP]: "Re: Reading a text file"
- In reply to: Martin Aepli: "Re: FSO / DateLastModified Problem"
- Next in thread: Dave Methvin: "Re: FSO / DateLastModified Problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|