Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #1803

Re: Getting some system information via VBSCript

From vincent.belaiche@gmail.com (Vincent Belaïche)
Newsgroups comp.lang.basic.visual.misc
Subject Re: Getting some system information via VBSCript
Date 2013-07-12 22:00 +0200
Organization Gegeweb News Server
Message-ID <80hafz5z1w.fsf@gmail.com> (permalink)
References <8061win2ic.fsf@gmail.com> <krlrh5$obt$1@speranza.aioe.org>

Show all headers | View raw


Deanna Earley <dee.earley@icode.co.uk> writes:

> On 10/07/2013 11:16, Vincent Belaïche wrote:
>> Hello,
>>
>> I have written the following script
>> '#######################################################################
> <SNIP>
>>     If ((iAttr And 16 ) <> 0) And ((iAttr And 1 ) = 0) Then
> <SNIP>
>> '######################################################################
>
> The read only attribute has no effect on whether you can write to the folder or not.
> It makes the folder as a "system" folder that has a desktop.ini file.
>
>> and when I run it the response is as follows:
>> '######################################################################
>> Microsoft (R) Windows Script Host Version 5.7
>> Copyright (C) Microsoft Corporation 1996-2001. Tous droits réservés.
>>
>> Programs=C:\Documents and Settings\Vincent\Menu Démarrer\Programmes
>> WritablePrograms=false
>>
>> Now, this answer seems wrong to me,
>
> Yes, because it is a "system" folder (see it has a desktop.ini file)
>
>> ...because if I open some command line
>> console and I do:
>>
>> Rem ###################################################################
>> cd /D "C:\Documents and Settings\Vincent\Menu Démarrer\Programmes"
>> mkdir toto
>> Rem ###################################################################
>>
>> That will work without error, i.e. --- contrary to the script response I
>> do have write access on special folder "Programs".
>
> It's part of your profile, you can write to it.
>
> Permissions may give you a slightly more correct answer to whether you can write there, but the only reliable
> way to tell is to try and write there.
>
> Depending on your apps build process/manifest, Windows may even let you write to a protected location and
> really move them elsewhere (lookup file system virtualisation)

Thank to both of you about the clear answers. I will try that.

VBR,
   Vincent.

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Getting some system information via VBSCript vincent.belaiche@gmail.com (Vincent Belaïche) - 2013-07-10 12:16 +0200
  Re: Getting some system information via VBSCript "Mayayana" <mayayana@invalid.nospam> - 2013-07-10 08:53 -0400
    Re: Getting some system information via VBSCript vincent.belaiche@gmail.com (Vincent Belaïche) - 2013-07-10 22:46 +0200
      Re: Getting some system information via VBSCript "Mayayana" <mayayana@invalid.nospam> - 2013-07-10 19:06 -0400
        Re: Getting some system information via VBSCript "Theo Tress" <rbk@online.de> - 2013-08-14 15:21 +0200
          Re: Getting some system information via VBSCript "Mayayana" <mayayana@invalid.nospam> - 2013-08-14 10:16 -0400
            Re: Getting some system information via VBSCript Deanna Earley <dee.earley@icode.co.uk> - 2013-08-14 16:41 +0100
              Re: Getting some system information via VBSCript "Mayayana" <mayayana@invalid.nospam> - 2013-08-14 11:53 -0400
          Re: Getting some system information via VBSCript ralph <nt_consulting@yahoo.com> - 2013-08-14 11:23 -0500
  Re: Getting some system information via VBSCript Deanna Earley <dee.earley@icode.co.uk> - 2013-07-11 09:48 +0100
    Re: Getting some system information via VBSCript vincent.belaiche@gmail.com (Vincent Belaïche) - 2013-07-12 22:00 +0200

csiph-web