Hi,
Does anyone know how I can get a count of files from a specfic directory ?
Also, if I want to supply a startup switch with the .EXE file, how can nI pick this up in my code ?
Many thanks,
Nick.
Printable View
Hi,
Does anyone know how I can get a count of files from a specfic directory ?
Also, if I want to supply a startup switch with the .EXE file, how can nI pick this up in my code ?
Many thanks,
Nick.
For counting files:
What do you mean with startup switch?Code:a=dir(path)
do while len(a)
a=dir
count=count+1
loop
Thanks for the quick reply!
when I call the .exe file I want to supply a server name with it. The server name will change a lot. So for example:
code.exe servername
I want to be able to find out in my code what the name of the server is.
I hope this make it a bit clearer ?
You use the "command" function. This will return to you any parameters that were typed after the exe.
Funny, i had to do the same thing a couple of months ago. :)Code:
Dim stServer as String.
'In Form Load
stServer = Command