I have a situation like this:
in the contact directory there will be a file called contact051107.xls, which is a phone list
but it gets updated from time to time, for example changing to contact051120.xls
I want to use Excel to open this file
each time I enter this directory, get the full name of the file whose fixed beginning is "contact"
and assign it to a variable, for example openit
then "%programfiles%\Microsoft Office\Excel.exe" %openit%
If I don't use external commands and only use commands from the command line, how can I do this?
My runtime environment is 2000 or XP
Please give me some pointers, I would be extremely grateful!
[ Last edited by pillow on 2006-1-4 at 11:38 ]
in the contact directory there will be a file called contact051107.xls, which is a phone list
but it gets updated from time to time, for example changing to contact051120.xls
I want to use Excel to open this file
each time I enter this directory, get the full name of the file whose fixed beginning is "contact"
and assign it to a variable, for example openit
then "%programfiles%\Microsoft Office\Excel.exe" %openit%
If I don't use external commands and only use commands from the command line, how can I do this?
My runtime environment is 2000 or XP
Please give me some pointers, I would be extremely grateful!
[ Last edited by pillow on 2006-1-4 at 11:38 ]


