Sign in to follow this  
Followers 0
FitzChivalry

Counting items on the startmenu

12 posts in this topic

Hey everyone, got a question. I am trying to see if some standard applications are installed on a bunch of computers. The shortcuts need to show up on the start menu. I know i can check if they are there be doing a pixel search for the icons, but I'm wondering if there is a simpler way. Any ideas? The image is a screenshot of a normal start menu, i need to make sure all 13 shortcuts are there.

I'm thinking right now the best way would be just to figure out which pixel is at the top of the start menu and check to make sure it is white, then do the same for the bottom of the start menu. That would kind of be a pain though, if anyone knows a better way i would like to know :-)

Any suggestions would be appreciated! Thanks.

Posted Image

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Couldn't you look here?

C:\Documents and Settings\All Users\Start Menu\MTC Labs

Edited by strate

INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station...

Share this post


Link to post
Share on other sites

Is there a way to count the number of files in a folder? I cant actually open the folder and see because the computers have restricted permissions and cant open up windows explorer. I could sign in as administrator to open up explorer, but that kind of defeats the purpose of making a script to do it...

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

#include <File.au3>
$array= _FileListToArray($s_Location,'*',2)

$s_Location = must be the path to the folder.

$array[0] will give you the number of files in it.

Whether or not it will work to not having premission I'm not sure. This is why we have this function: RunAsSet ( ["user", "domain", "password" [, options]] ) though, at least I think, I've never used it.

Edited by strate

INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station...

Share this post


Link to post
Share on other sites

Built-in function DirGetSize can also give you the file-count for a folder, recursive or not.

Share this post


Link to post
Share on other sites

ok thanks, i'll give it a try and post back the results

Share this post


Link to post
Share on other sites

hmmm, turns out none of those functions work because we use novell to distribute the apps. even when i am physically at the computer and log in, it shows that the startmenu folder is empty... guess i'll just do some pixel checking

Share this post


Link to post
Share on other sites

Have you checked both Start Menu? Are you see in the START menu are combine short cuts from your profile(C:\Documents and Settings\Administrator\Start Menu) and All Users profile(C:\Documents and Settings\All Users\Start Menu).

Share this post


Link to post
Share on other sites

Yeah, I have checked in all the folders there... searched the whole harddrive to see if novell put them in some odd directory some where, but no such luck. I have no idea how novell works, but it sure is an annoyance right now :-)

Share this post


Link to post
Share on other sites

Yeah, I have searched the entire hard drive, they don't show up anywhere, and they are definitely not on any of the networked drives. I ended up just doing a pixel check, it wasn't too bad.... thanks for the help everyone!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0