Re: Handle files with a . (dot) as first char.

Tech-Archive recommends: Fix windows errors by optimizing your registry



Mattias.Sandstrom@xxxxxxxxx schrieb:
Im new to VBscript and cant get my script to handle files with .dot im
trying to make a script that delete
all files older than 29 days except for the file .root but cant seem
to compare or make an IF string to find the file with a .root probably
since windows cant handle those chars, but there must be someway to
handle it?
[...]
No need to slander windows! Just check for the first character of
the filename:

Const csDir = ".\renCSV" ' change this
Dim oFS : Set oFS = CreateObject( "Scripting.FileSystemObject" )
Dim oFile
For Each oFile In oFS.GetFolder( csDir ).Files
If "." = Left( oFile.Name, 1 ) Then WScript.Echo oFile.Name
Next
.



Relevant Pages

  • openssl/ssh upgrade
    ... and now I cant su to root. ... I have rebuilt the box from scratch with the new version but still no luck. ...
    (comp.security.ssh)
  • Re: [9fans] p9_errstr2errno unknown mode
    ... you capturing this data? ... I don't see any bits from the second command. ... As root I can create a file but cant copy a file to the Plan 9 fileserver.. ...
    (comp.os.plan9)
  • Re: i cant enter su
    ... > i cant enter su in my machine.i controled and i found master.passwd ... Can you log in as root at the console? ... If you know the root password, open up the file /etc/group in your ... To unsubscribe, ...
    (freebsd-questions)
  • giving root access
    ... Hi, I know there has been enough discussion on this, but still cant ... root access, why cant i use adduser, or passwd? ...
    (comp.os.linux.development.system)
  • Re: Bass Player`s Revenge Chord
    ... All I`m saying is that as Bass Players we cant sit on the "4th" of a chord ... instead of the root. ...
    (alt.guitar.bass)