f



Why can I get the size of the folder 'C:\Test\' and not of 'C:\' by using Microsoft Scripting Runtime

I've enabled
  Project - References... - Microsoft Scripting Runtime

I use the following code to get the number of files and the size of all the
files in a specific folder.

  Dim objFSO As Scripting.FileSystemObject
  Dim objFolder As Scripting.Folder

  Set objFSO = New Scripting.FileSystemObject
  Set objFolder = objFSO.GetFolder("C:\Test\")
  MsgBox(objFolder.Files.Count)
  MsgBox(objFolder.Size)

This works great for all folders but it doesn't work for 'C:\', 'D:\', ...
  ...
  Set objFolder = objFSO.GetFolder("C:\")

I can get the number of files in 'C:\' with
  MsgBox(objFolder.Files.Count)
but
  MsgBox(objFolder.Size)
shows the error message 'Permission denied'.

What's wrong with my code?
Stefan


0
12/28/2003 7:44:27 PM
comp.lang.basic.visual.misc 10153 articles. 0 followers. Post Follow

6 Replies
1201 Views

Similar Articles

[PageSpeed] 33

Hallo Stefan
FSO is buggy, nimm lieber API aber mit

  Dim objFSO As Scripting.FileSystemObject
  Dim objFolder As Scripting.Folder

  Set objFSO = New Scripting.FileSystemObject
  Set objFolder = objFSO.GetFolder("c:")
  MsgBox (objFolder.Files.Count) & " Files using " &
(objFolder.Drive.TotalSize - objFolder.Drive.AvailableSpace)

kann man das gewuenschte Ergebnis haben.

Heiko

"Stefan Mueller" <seekware-remove-@yahoo.com> wrote:

>I've enabled
>  Project - References... - Microsoft Scripting Runtime
>
>I use the following code to get the number of files and the size of all the
>files in a specific folder.
>
>  Dim objFSO As Scripting.FileSystemObject
>  Dim objFolder As Scripting.Folder
>
>  Set objFSO = New Scripting.FileSystemObject
>  Set objFolder = objFSO.GetFolder("C:\Test\")
>  MsgBox(objFolder.Files.Count)
>  MsgBox(objFolder.Size)
>
>This works great for all folders but it doesn't work for 'C:\', 'D:\', ...
>  ...
>  Set objFolder = objFSO.GetFolder("C:\")
>
>I can get the number of files in 'C:\' with
>  MsgBox(objFolder.Files.Count)
>but
>  MsgBox(objFolder.Size)
>shows the error message 'Permission denied'.
>
>What's wrong with my code?
>Stefan
>
>

0
hg0180 (7)
12/28/2003 8:48:18 PM
"Stefan Mueller" <seekware-remove-@yahoo.com> wrote in message
news:bsnbqi$cl7$1@news.eusc.inter.net...
> I've enabled
>   Project - References... - Microsoft Scripting Runtime
>
> I use the following code to get the number of files and the size of
all the
> files in a specific folder.
>
>   Dim objFSO As Scripting.FileSystemObject
>   Dim objFolder As Scripting.Folder
>
>   Set objFSO = New Scripting.FileSystemObject
>   Set objFolder = objFSO.GetFolder("C:\Test\")
>   MsgBox(objFolder.Files.Count)
>   MsgBox(objFolder.Size)
>
> This works great for all folders but it doesn't work for 'C:\', 'D:\',
....
>   ...
>   Set objFolder = objFSO.GetFolder("C:\")
>
> I can get the number of files in 'C:\' with
>   MsgBox(objFolder.Files.Count)
> but
>   MsgBox(objFolder.Size)
> shows the error message 'Permission denied'.
>
> What's wrong with my code?
> Stefan
>
>

It worked on my machine (XP). The size of "C:\" reported was the total
used space on drive C, which took a noticable amount of time to be
tallied up (Size for folders includes all sub folders). If you have XP,
maybe you have some permission set to hide the contents of the root
folder?


0
12/28/2003 9:14:12 PM
I've Windows 2000 Professional and it doesn't work.
I'll try Heikos solution or perhaps I'll use an API.

Thanks
Stefan

"Steve Gerrard" <notstevegerrard@comcast.net> wrote in message
news:5eednXzYs7wL2nKiRVn-vw@comcast.com...
>
> "Stefan Mueller" <seekware-remove-@yahoo.com> wrote in message
> news:bsnbqi$cl7$1@news.eusc.inter.net...
> > I've enabled
> >   Project - References... - Microsoft Scripting Runtime
> >
> > I use the following code to get the number of files and the size of
> all the
> > files in a specific folder.
> >
> >   Dim objFSO As Scripting.FileSystemObject
> >   Dim objFolder As Scripting.Folder
> >
> >   Set objFSO = New Scripting.FileSystemObject
> >   Set objFolder = objFSO.GetFolder("C:\Test\")
> >   MsgBox(objFolder.Files.Count)
> >   MsgBox(objFolder.Size)
> >
> > This works great for all folders but it doesn't work for 'C:\', 'D:\',
> ...
> >   ...
> >   Set objFolder = objFSO.GetFolder("C:\")
> >
> > I can get the number of files in 'C:\' with
> >   MsgBox(objFolder.Files.Count)
> > but
> >   MsgBox(objFolder.Size)
> > shows the error message 'Permission denied'.
> >
> > What's wrong with my code?
> > Stefan
> >
> >
>
> It worked on my machine (XP). The size of "C:\" reported was the total
> used space on drive C, which took a noticable amount of time to be
> tallied up (Size for folders includes all sub folders). If you have XP,
> maybe you have some permission set to hide the contents of the root
> folder?
>
>


0
1/7/2004 6:12:47 PM
Hi Heiko

Thanks a lot for your solution.

If I'd like to use API instead of FSO, which API should I take?
I've only very few experiences with APIs.

Stefan


"Heiko" <hg0180@aol.com> wrote in message
news:3fef4141.2958956@news.btx.dtag.de...
> Hallo Stefan
> FSO is buggy, nimm lieber API aber mit
>
>   Dim objFSO As Scripting.FileSystemObject
>   Dim objFolder As Scripting.Folder
>
>   Set objFSO = New Scripting.FileSystemObject
>   Set objFolder = objFSO.GetFolder("c:")
>   MsgBox (objFolder.Files.Count) & " Files using " &
> (objFolder.Drive.TotalSize - objFolder.Drive.AvailableSpace)
>
> kann man das gewuenschte Ergebnis haben.
>
> Heiko
>
> "Stefan Mueller" <seekware-remove-@yahoo.com> wrote:
>
> >I've enabled
> >  Project - References... - Microsoft Scripting Runtime
> >
> >I use the following code to get the number of files and the size of all
the
> >files in a specific folder.
> >
> >  Dim objFSO As Scripting.FileSystemObject
> >  Dim objFolder As Scripting.Folder
> >
> >  Set objFSO = New Scripting.FileSystemObject
> >  Set objFolder = objFSO.GetFolder("C:\Test\")
> >  MsgBox(objFolder.Files.Count)
> >  MsgBox(objFolder.Size)
> >
> >This works great for all folders but it doesn't work for 'C:\', 'D:\',
....
> >  ...
> >  Set objFolder = objFSO.GetFolder("C:\")
> >
> >I can get the number of files in 'C:\' with
> >  MsgBox(objFolder.Files.Count)
> >but
> >  MsgBox(objFolder.Size)
> >shows the error message 'Permission denied'.
> >
> >What's wrong with my code?
> >Stefan
> >
> >
>


0
1/7/2004 6:16:03 PM
Hello Stefan,
if i am wrong assuming you're a german guy then forget about
http://activevb.de, otherwise have a look at <Dateien und
Verzeichnisse>.
I do not know of an API as comfortable than FSO's .Count and .Size
but if you google for +VB +GetDiskFreeSpace +Recursive you'll find
complete solutions for each part (Recursively determine Volumes and /
or Folders, Infos about Volumes) you have to know.
Post again if you didn't find something, i can send you some code fit
for Win98 / 2000 / XP.

Heiko

"Stefan Mueller" <seekware-remove-@yahoo.com> wrote:

>Hi Heiko
>
>Thanks a lot for your solution.
>
>If I'd like to use API instead of FSO, which API should I take?
>I've only very few experiences with APIs.
>
>Stefan
>
>
>"Heiko" <hg0180@aol.com> wrote in message
>news:3fef4141.2958956@news.btx.dtag.de...
>> Hallo Stefan
>> FSO is buggy, nimm lieber API aber mit
>>
>>   Dim objFSO As Scripting.FileSystemObject
>>   Dim objFolder As Scripting.Folder
>>
>>   Set objFSO = New Scripting.FileSystemObject
>>   Set objFolder = objFSO.GetFolder("c:")
>>   MsgBox (objFolder.Files.Count) & " Files using " &
>> (objFolder.Drive.TotalSize - objFolder.Drive.AvailableSpace)
>>
>> kann man das gewuenschte Ergebnis haben.
>>
>> Heiko
>>
>> "Stefan Mueller" <seekware-remove-@yahoo.com> wrote:
>>
>> >I've enabled
>> >  Project - References... - Microsoft Scripting Runtime
>> >
>> >I use the following code to get the number of files and the size of all
>the
>> >files in a specific folder.
>> >
>> >  Dim objFSO As Scripting.FileSystemObject
>> >  Dim objFolder As Scripting.Folder
>> >
>> >  Set objFSO = New Scripting.FileSystemObject
>> >  Set objFolder = objFSO.GetFolder("C:\Test\")
>> >  MsgBox(objFolder.Files.Count)
>> >  MsgBox(objFolder.Size)
>> >
>> >This works great for all folders but it doesn't work for 'C:\', 'D:\',
>...
>> >  ...
>> >  Set objFolder = objFSO.GetFolder("C:\")
>> >
>> >I can get the number of files in 'C:\' with
>> >  MsgBox(objFolder.Files.Count)
>> >but
>> >  MsgBox(objFolder.Size)
>> >shows the error message 'Permission denied'.
>> >
>> >What's wrong with my code?
>> >Stefan
>> >
>> >
>>
>
>

0
hg0180 (7)
1/7/2004 7:03:42 PM
On Wed, 7 Jan 2004 19:12:47 +0100, "Stefan Mueller"
<seekware-remove-@yahoo.com> wrote:

>I've Windows 2000 Professional and it doesn't work.
>I'll try Heikos solution or perhaps I'll use an API.
>

If you really just want to find the /actual/ space used then
GetDiskFreeSpaceEx is what you are after


0
erewhon (1218)
1/12/2004 12:54:02 PM
Reply:

Similar Artilces:

Calling 'foo.c' or 'foo2.c' from my 'main_code.c'
Hello. I don't know if following is possible. I've got 'main_code.c': ............................ char * another_code; another_code = "foo.c"; ............................ I've got 'foo.c': ............................ #include <stdio.h> int main() { printf ("Hello world from 'foo.c'!\n"); return 0; } ............................ I would like to call 'foo.c' main function from 'main_code.c'. Is this possible? Thank you very much and best regards. Francesco Moi <francescomoi@europe.com> scribbled the ...

if ('A:B:C' =~ /:(.*?)$/) then why the heck is $1 'B:C' and not just 'C'
To repeat the title, in case it is munged by Google Groups: if ('A:B:C' =~ /:(.*?)$/) then why the heck is $1 'B:C' and not just 'C' I've been developing with perl for years; but even simple things in it still sometimes throw up surprises. The regexp /:(.*?)$/ is anchored on the right by $, then comes a non- greedy match which, AIUI, is the "shortest string it can get away with", preceded by a colon. So I would expect this to pick up just the "C", as it does with /([^:]*)$/. Am I assuming/doing something silly? It is frid...

'''''''''''''The Running Update/Append Queries Using VBA code Ordeal''''''''''''''
Hello fellow programmers, I am trying to run an append/update query from code, a command button on a form initiates the queries. the format i am using is; _____________________________________________________ SELECT "criteria" FROM "criteria" WHERE "criteria" UPDATE/APPEND "field selections" RecordSource "qryExample" = above text strings" _______________________________________________________________________ When i am running a SELECT query in this manner it works fine with no problems, and accepts the values of specified linked form fields. This never works when doing an APPEND/UPDATE query. It can never find the values of linked form fields, Access always asks for the parameter value of the field(s) in question, or Access comes up with an error 3323 - No recordset. I am sure there are other people that have had this problem. What is the difference between Select queries and append/update queries? the append/update queries never seem to be able to find values in linked form fields. Can anyone shed any light on this or point to a knowledgebase Item, or even recommend a book focusing on this subject, I will go and buy it now. I have been for up 2 nights trying to acomplish this and now considering suicide, please help. Thanks In advance, Aaron. I know of two ways you can accomplish this. 1. You can create the SQL script for you append or update query and run the script with DoCmd.RunSQL. 2. You can create a...

'''''''''''''The Running Update/Append Queries Using VBA code Ordeal'''''''''''''' #2
Hi, Thanks for ur help there HJ. I know how to do the tasks you specified there. I would like for the update query to use field values from some of the fields on the form (frmInvoices) such as InvoiceNumber, DateFrom, DateTo. My problem is that an append/update query can't find the values in the open Form (frmInvoices) when I specify them as; [Forms]![frmInvoices]![InvoiceNumber] a select query has no problem finding the field values on a form. please help. Aaron Hi Aaron, Could you post the entire code that you are having trouble with? Now it is not possible to see what goes wrong. HJ "Aaron" <aaron@rapid-motion.co.uk> wrote in message news:260d7f40.0408120245.2f3d01f8@posting.google.com... > Hi, > > Thanks for ur help there HJ. > > I know how to do the tasks you specified there. > > I would like for the update query to use field values from some of the > fields on the form (frmInvoices) such as InvoiceNumber, DateFrom, > DateTo. My problem is that an append/update query can't find the > values in the open Form (frmInvoices) when I specify them as; > > [Forms]![frmInvoices]![InvoiceNumber] > > a select query has no problem finding the field values on a form. > > please help. > > Aaron First off, if you are not always using all the parameters specified in your form, then you have to add parameters to your query on the fly. Also, you can't just do something like qdf.SQL = "SE...

'^=' and '~='?
Hello, What is the difference between '^=' and '~='? Thanks, Duckhye ...

'ab\c' and 'ab\\c'
I encountered a rather peculiar behavior of strings today. Here is my irb session: ------------------------------------------------------------------- irb(main):001:0> 'ab\c' irb(main):002:0' ' SyntaxError: compile error (irb):2: unterminated string meets end of file from (irb):2 irb(main):003:0> 'ab\\c' => "ab\\c" irb(main):004:0> 'a\b' => "a\\b" irb(main):005:0> ------------------------------------------------------------------- As you can see when I typed 'ab\c' my irb didn't return. It was expecting...

'is not' or '!='
A newbie question to you; what is the difference between statements like: if x is not None: and if x != None: Without any context, which one should be preferred? IMHO, the latter is more readable. On 2014-08-18 21:35, ElChino wrote: > A newbie question to you; what is the difference between statements > like: > if x is not None: > and > if x != None: > > Without any context, which one should be preferred? > IMHO, the latter is more readable. > "x == y" tells you whether x and y refer to objects that are equal. "x is y" tells you whether x and y actually refer to the same object. In the case of singletons like None (there's only one None object), it's better to use "is". "ElChino" <elchino@cnn.cn>: > A newbie question to you; what is the difference between statements > like: > if x is not None: > and > if x != None: Do the following: take two $10 bills. Hold one bill in the left hand, hold the other bill in the right hand. Now, the bill in the left hand "is not" the bill in the right hand. However, the bill in the left hand "==" the bill in the right hand. > Without any context, which one should be preferred? > IMHO, the latter is more readable. In almost all cases, both tests would result in the same behavior. However, the "is not" test is conceptually the correct one since you want...

a regexp riddle: re.search(r'(?:(\w+), |and (\w+))+', 'whatever a, bbb, and c') =? ('a', 'bbb', 'c')
HypoNt: I need to turn a human-readable list into a list(): print re.search(r'(?:(\w+), |and (\w+))+', 'whatever a, bbb, and c').groups() That currently returns ('c',). I'm trying to match "any word \w+ followed by a comma, or a final word preceded by and." The match returns 'a, bbb, and c', but the groups return ('bbb', 'c'). What do I type for .groups() to also get the 'a'? Please go easy on me (and no RTFM!), because I have only been using regular expressions for about 20 years... -- Phlip h...

stream(filename, 'c', 'query size')
when querying the size of a file larger than 2GB, the stream(filename, 'c', 'query size') gets me a blank how to solve this problem - Message posted using http://www.talkaboutprogramming.com/group/comp.lang.rexx More information at http://www.talkaboutprogramming.com/faq.htm In Message-ID:<31c8ae0811fd834b58e8a9d823f60421@localhost.talkaboutprogramming.com>, "misteros2" <misteros2@skynet.be> wrote: >when querying the size of a file larger than 2GB, >the stream(filename, 'c', 'query size') gets me a blank >how to solve this problem? What REXX? What operating system? What file system? What does the documentation for your REXX say about it? I use Regina REXX on Win2K. With an NTFS system, query size on large files gives me unusual negative numbers rather than blanks. The documentation suggests that all stream I/O is highly system-dependent and could be flaky (my paraphrasing). How to ask questions the smart way: <http://www.catb.org/~esr/faqs/smart-questions.html> -- Arthur T. - ar23hur "at" intergate "dot" com Looking for a z/OS (IBM mainframe) systems programmer position ver: orexx-2.3.4.0-3 os: redhat 4.6-i386/x86_64/ppc64 fs: ext - Message posted using http://www.talkaboutprogramming.com/group/comp.lang.rexx More information at http://www.talkaboutprogramming.com/faq.htm >misteros2 >when querying the size of a file larger than 2GB, >the stream(...

Is there a simple function to generate a list like ['a', 'b', 'c', ... 'z']?
Is there a simple function to generate a list like ['a', 'b', 'c', ... 'z']? The range() just can generate the numeric list. On Apr 9, 2007, at 3:29 AM, =E4=BA=BA=E8=A8=80=E8=90=BD=E6=97=A5=E6=98=AF=E5= =A4=A9=E6=B6=AF=EF=BC=8C=E6=9C=9B=E6=9E=81=E5=A4=A9=E6=B6=AF=E4=B8=8D=20 =E8=A7=81=E5=AE=B6 wrote: > Is there a simple function to generate a list like ['a', 'b', 'c', ... > 'z']? The range() just can generate the numeric list. import string list(string.lowercase) 人言落日是天涯,望极天涯不见家 schrieb: > Is there a simple function to generate a list like ['a', 'b', 'c', ... > 'z']? The range() just can generate the numeric list. There is: [ chr(i) for i in range(97, 123) ] Thomas T24gQXByIDksIDQ6MzXCoHBtLCBNaWNoYWVsIEJlbnRsZXkgPG1pY2guLi5AamVkaW1pbmR3b3Jr cy5jb20+IHdyb3RlOgo+IE9uIEFwciA5LCAyMDA3LCBhdCAzOjI5IEFNLCDkurroqIDokL3ml6Xm mK/lpKnmtq/vvIzmnJvmnoHlpKnmtq/kuI0KPgo+IOingeWutiB3cm90ZToKPiA+IElzIHRoZXJl IGEgc2ltcGxlIGZ1bmN0aW9uIHRvIGdlbmVyYXRlIGEgbGlzdCBsaWtlIFsnYScsICdiJywgJ2Mn LCAuLi4KPiA+ICd6J10/IMKgIFRoZSByYW5nZSgpIGp1c3QgY2FuIGdlbmVyYXRlIHRoZSBudW1l cmljIGxpc3QuCj4KPiBpbXBvcnQgc3RyaW5nCj4gbGlzdChzdHJpbmcubG93ZXJjYXNlKQoKVGhh bmtzIGEgbG90IQo= T24gQXByIDksIDI6MjnCoGFtLCAi5Lq66KiA6JC95pel5piv5aSp5rav77yM5pyb5p6B5aSp5rav 5LiN6KeB5a62IiA8a2VsdmluLi4uLkBnbWFpbC5jb20+IHdyb3RlOgo+IElzIHRoZXJlIGEgc2lt cGxlIGZ1bmN0aW9uIHRvIGdlbmVyYXRlIGEgbGlzdCBsaWtlIFsnYScsICdiJywg...

if str_mo not in ('','.') and str_da not in ('','.') and str_yy not in ('','.') Any shorter ?
Hi, there. =20 I'm just curious if it ever dawned on anybody how to abbreviate this line : if str_mo not in ('','.') and str_da not in ('','.') and str_yy not in ('','.')=20 =20 Igor Kurbeko Clinical Programmer Analyst 678 336 4328 ikurbeko@atherogenics.com =20 no brain no pain =20 how about: if not (str_mo in ('','.') or str_da in ('','.') or str_yy in ('','.')) OR if not (missing(str_mo) or missing(str_da) or missing(str_yy)) Eric On 22 Oct 03 21:13:37 GMT, ikurbeko@ATHER...

A function with 'and' , 'not' , 'null' , 'car' and 'cdr'
What's this ? (defun enigma (x) (and (not (null x)) (or (null (car x)) (enigma (cdr x))))) "I suppose I should learn Lisp, but it seems so foreign." - Paul Graham, Nov 1983 On Wed, Oct 07 2015, CAI GENGYANG wrote: > What's this ? > > > (defun enigma (x) > (and (not (null x)) > (or (null (car x)) > (enigma (cdr x))))) Bad taste? It returns T if the list X contains nil as an element. It would be clearer to write (some #'null x). Helmut CAI GENGYANG ...

to get my ''PLP''
I tried to install the MATLAB in my computer but idon't have my personal license password.i would like how to get my PLP? buy it Hi, http://www.mathworks.com/support/solutions/data/1-16LU2.html J�r�me ...

'Production' and 'Test'
Would like have your opinion if you will allow your 'Test' environment to be setup with a different O/S or database version from 'Production' environment? It's a request raised from our infrastructure manager when our company needs to have a new 'Production' server and she insisted to install WIN2003 instead of WIN2000 which run in S1/S2. Her assertion was, after a few years, we still need to migrate S1/S2 to WIN2003 so we can save time to migrate S3 at that time and also we can identify the migration issues in advance when implement application in S3. But my opinion was 'Production' and 'Test' environment have to be identical should be a golden rule which every IT members have to follow it without exception but this opinion was rejected by other IT managers and even my CIO. He said, the developers can suffer it and it's worth it. It's really frustrated. Current Environment List. S1 : Production Server : WIN2000 S2 : Test Server : WIN2000 S3 : New production Server : WIN2003 Responding to Ccwei... > Would like have your opinion if you will allow your 'Test' environment > to > be setup with a different O/S or database version from 'Production' > environment? > > It's a request raised from our infrastructure manager when our company > needs > to have a new 'Production' server and she insisted to install WIN2003 > instead > of WIN2000 which run in S1/...

In replies, using 'To:' as 'From:'
Hi, all. I have two email accounts: a personal one and a university-issued one. My university gives me the option of forwarding its incoming mail to my personal email account. I would like to do this to avoid having two separate Mutt configurations and checking two accounts, but the problem is that I want replies to appear from the correct account. That is, if I get an email to my university account and decide to reply, the From: header should show my university email address. Same for emails to my personal account. Ideally I can also choose the From: header of newly-composed messages without manually editing the header, but that's not necessary. Is this scenario possible with Mutt? Thank you. -- PGP key: http://www.qnan.org/~pmw/pgp/public.asc Philip M. White <pmw+news@qnan.org> wrote: > I have two email accounts: a personal one and a university-issued > one. {...} That is, if I get an email to my university account and > decide to reply, the From: header should show my university email > address. Same for emails to my personal account. See wiki-faq. > Ideally I can also choose the From: header of newly-composed > messages without manually editing the header, but that's not > necessary. See wiki, maybe in ConfigTricks. -- � Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least to show your attitude. You're responsible for ALL you do: you get what...

Why use '==' instead of '==='?
I have noticed that there are some on the news group here who prefer the use of '==' when it is known [by the coder] that both sides of the equation are strings. Example from one of David Mark's recent posts: >>if ( typeof selector === "string" ) { > > One equal sign too many, requiring the reader to pause and ponder what > the author's intentions were. Are they ignorant of the fact that the > resultof a typeof operation is a string (as is a string literal). I find it it just the reverse. I know exactly what the authors intent was ...

When CANNOT use 'first'/'rest' in place of 'car'/'cdr'?
If I'm not mistaken, 'first' and 'rest' seem like modern user friendly replacements for 'car' and 'cdr'. Is it true that car and cdr are only in Common LISP to be able to run ancient LISP code? Is there any time I cannot use 'first' and 'rest' instead?/ Chris seberino@spawar.navy.mil wrote: > If I'm not mistaken, 'first' and 'rest' seem like modern user friendly > replacements for 'car' and 'cdr'. > > Is it true that car and cdr are only in Common LISP to be able > to run ancient LISP code? I use first and rest whenever those are the only ones I care about (or if I'm actually going to use second, third, etc). However, car and cdr won't be disappearing anytime soon simply because of their combinatory (?) abilities: cadr cddar .... I can just very quickly look at it and know what is going on. Jeff M. -- http://www.retrobyte.org mailto:massung@gmail.com seberino@spawar.navy.mil wrote: > If I'm not mistaken, 'first' and 'rest' seem like modern user friendly > replacements for 'car' and 'cdr'. > > Is it true that car and cdr are only in Common LISP to be able > to run ancient LISP code? > > Is there any time I cannot use 'first' and 'rest' instead?/ > > Chris > There shouldn't be anywhere that you _cannot_ use FIRST rather than CAR or REST rather than CDR. It's m...

error: expected '=', ',', ';', 'asm' or '__attrib
Hi I'm trying to compile an ADC Driver & come acrosss the following error. I've no experience writing drivers before, and hence have no clue how to fix it. Hope someone out there has encountered the problem & suggesst a fix for the same. The Error is I get is : qadc.c: At top level: qadc.c:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'qadc_read' make: *** [qadc.o] Error 1 [root@localhost qadc]# ########################################################################### ADC Driver Code ########################################################################### #define MODULE #define __KERNEL__ #include <linux/config.h> #include <linux/module.h> #include <linux/kernel.h> /* printk */ #include <linux/fs.h> / #include <linux/errno.h> /* error codes */ #include <linux/types.h> /* size_t */ #include <linux/proc_fs.h> /* proc file system */ #include <linux/fcntl.h> #include <asm/system.h> /* cli, flags */ #include <asm/uaccess.h> /* copy from/to user */ /*Registers to get qadc access*/ volatile unsigned short * qadcmcr = (unsigned short *)0x40190000; volatile unsigned short * qacr0 = (unsigned short *)0x4019000a; volatile unsigned short * qacr1 = (unsigned short *)0x4019000c; volatile unsigned short * qacr2 = (unsigned short *)0x4019000e; volatile unsigned short * qasr0 = (unsigned short *)0x40190010; volatile unsigned short * qasr1...

error: expected '=', ',', ';', 'asm' or '__attrib
Hi I'm trying to compile an ADC Driver & come acrosss the following error. I've no experience writing drivers before, and hence have no clue how to fix it. Hope someone out there has encountered the problem & suggesst a fix for the same. The Error is I get is : qadc.c: At top level: qadc.c:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'qadc_read' make: *** [qadc.o] Error 1 [root@localhost qadc]# ########################################################################### ADC Driver Code ##...

logical to 'on' / 'off'
Hi, is there a function implemented doing this conversion? my Problem is, that I want to use the following code: set(handles.edit_curr_trq_sl,'Enable',get(hObject,'Value')) where get(hObject,'Value') gives the state of a checkbox thank you! function [str]=tf2oo(logic) switch logic case 0 str='off'; case 1 str='on'; end%switch end%function tf2oo() while i do not know a built in function, I use my own:) meisterbartsch wrote: > > > function [str]=tf2oo(logic) > switch logic > case 0 > str='off'; &g...

'a'..'z'
Is it possible to achieve something like this? switch (mystring.charAt(0)) { case 'a'..'z': // do something break; } "cruster" <cruster@gmail.com> wrote in message news:1151319731.988814.326200@m73g2000cwd.googlegroups.com... > Is it possible to achieve something like this? > > switch (mystring.charAt(0)) { > case 'a'..'z': > // do something > break; > } > There are times when an if statement may be more appropriate ;) Sorry - java is not VB :) -- LTP :) cruster schreef: > Is it possible to achieve somethi...

Converting 'C' to an 'M-file'
After spending some time converting a 'C' program into a MATLAB script file in order to incorporate it into our suite of MATLAB based data processing routines, I am now wondering if I could run the 'C' program in MATLAB? It would need to access data created from another MATLAB script stored locally. I thought translating it into MATLAB would improve it's efficiency as it would be running on MATLAB, but having read something about 'MEX-files' I am becoming uncertain. Any quick-start guide to running 'C' programs as M-file scripts would be most helpful. &q...

'!' vs. '.'
Is there an advantage to using the '!' notation to represent form/ control relationships? (eg. Me!text1 vs Me.text1) I am currently using the '.' notation exclusively (for code completion in the VB Editor), but much of the high-quality code that I've seen (in Duane Hookom's Query-by-Form db, for example) uses the other. Here's one opinion for you: http://doc.advisor.com/doc/05352 robert.waters wrote: >Is there an advantage to using the '!' notation to represent form/ >control relationships? (eg. Me!text1 vs Me.text1) > >I am currently using the '.' notation exclusively (for code completion >in the VB Editor), but much of the high-quality code that I've seen >(in Duane Hookom's Query-by-Form db, for example) uses the other. -- HTH - RuralGuy (RG for short) acXP WinXP Pro Please post back to this forum so all may benefit. Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/200704/1 Here's my $0.02 worth on this. I tend to copy the notation style and naming conventions that I see being used in the Help files. That would be Me![text1] for a control on a form. I am of the belief that this notation explicitly refers to a control itself rather than a field in the form's recordset. Here's an example: I have a parts inventory app that uses a "Line" code, which is usually a 3-character abbreviation for a brand name, and is the na...

replacement for '{' and '}' ?
I am still playing around with what kind of syntax I would like to mark up my documents. Are there equivalent long substitutes for { and } when they are not used to describe arguments to functions? Something like \begin{group} and \end{group}. In other words, if I could force myself to write, say, \begin{group} \it ... \end{group} instead of {\it ... }, then I believe I could identify from the markup context what is an argument that belongs to a just invoked macro and what is text. {Of course, in this context, \textit{...} would be better.} No more ambiguity whether a in \myfunction{a} is an argument or just text. Is there a way to make latex barf when it sees an ordinary '{' in text, rather than \begin{group}, but not barf when I want it (to denote macro arguments)? Regards, /iaw On Aug 16, 6:01=A0pm, "ivo...@gmail.com" <ivo...@gmail.com> wrote: > Is there a way to make latex barf when it sees an ordinary '{' in > text, rather than \begin{group}, but not barf when I want it (to > denote macro arguments)? What do you mean exactly? I don't understand. Do you have in mind your- to-be-new-syntax or just regular latex? Cheers, Tomek ivowel@gmail.com wrote: > I am still playing around with what kind of syntax I would like to > mark up my documents. > > Are there equivalent long substitutes for { and } when they are not > used to describe arguments to functions? Something like \begin{group} > and \end{gr...

Web resources about - Why can I get the size of the folder 'C:\Test\' and not of 'C:\' by using Microsoft Scripting Runtime - comp.lang.basic.visual.misc

Microsoft - Wikipedia, the free encyclopedia
Albuquerque , New Mexico , U.S. (April 4, 1975 ( 1975-04-04 ) ) Microsoft Redmond Campus , Redmond, Washington , U.S. is an American multinational ...

Microsoft Corporation
Visit Microsoft Australia to download themes, find a new PC, upgrade Windows and much more.

Microsoft Canada - Software - Advertising - Phones - IT - Cloud
Microsoft Canada is a world leader in software, services, partner resources and Internet technologies. Get product information, support, and ...

Free Microsoft Points - Free Microsoft Points
Get Free Microsoft Points, Free 1400 Microsoft Points, Free 2100 Microsoft Points codes emailed to you for Free. Yes, All for Free.


Microsoft Bob - Just a short, simple blog for Bob to share some tips and tricks.
Just a short, simple blog for Bob to share some tips and tricks.

Microsoft New England Research and Development Center
The Microsoft New England Research & Development Center is a research and software innovation campus located in the heart of Cambridge, Massachusetts. ...

Jobs at Microsoft - Explore Microsoft Jobs and Join our Talent Community - Apply for Microsoft Jobs Online ...
Search for Jobs at Microsoft here. Explore worldwide Microsoft jobs, including game design jobs, developer jobs, software sales jobs, marketing ...

Microsoft Cloud Partner - Home
... your existing Internal Use Right through June 2013 while you work towards earning Cloud Accelerate status. Note: If you intend to sell Microsoft ...

Microsoft Hohm Service Discontinuation
Microsoft-Hohm discontinuation message

Resources last updated: 3/25/2016 12:25:37 AM