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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Shell function 9
Shell to open multiple files 2
Running .CMD files from Access 2
run Shell with /wait 4
Button Help 3
How to CopyFolder to a readonly Folder? Help??? 1
Help PC wont download WCG 4
Shell and Wait 3

Top