Need help with Shell code

S

Stephen sjw_ost

Hello,

I need help with the following code.

Call fHandleFile("C:\%APPDATA%\MsgrDatabase\RestartMsgr.cmd", WIN_NORMAL)

I am using this Shell code to invoke the CMD file. The CMD file should
always be in the ApplicationData\MsgrDatabase folder which I have created
using an AutoFEUpdater. How can I write the path to the CMD file so that this
code can read it without having to write out the entire path. It needs to
read to APPDATA\MsgrDatabase directly because APPDATA\MsgrDatabase can be
found under Documents and Settings or under WINNT.

Any help is greatly appreciated.
 
S

Stephen sjw_ost

If I would just stop panicing and read thru the forums I'd find my answers.
Here is how I fixed it.

Call fHandleFile(Environ("AppData") & "\MsgrDatabase\RestartMsgr_Auto.cmd",
WIN_NORMAL)

Thanks for all the help and posts.
 
Top