hi all
i have a functionality in my website
dynamically show a link specified drive if i click that link it can open in explorer
from client side
in process.start is working only local but when i publish in iis it's not working client side so i want to open client side through
shell command or command prompt
public enum ShowCommands : int
{
SW_HIDE = 0,
SW_SHOWNORMAL = 1,
SW_NORMAL = 1,
SW_SHOWMINIMIZED = 2,
SW_SHOWMAXIMIZED = 3,
SW_MAXIMIZE = 3,
SW_SHOWNOACTIVATE = 4,
SW_SHOW = 5,
SW_MINIMIZE = 6,
SW_SHOWMINNOACTIVE = 7,
SW_SHOWNA = 8,
SW_RESTORE = 9,
SW_SHOWDEFAULT = 10,
SW_FORCEMINIMIZE = 11,
SW_MAX = 11
}
[DllImport("shell32.dll")]
static extern IntPtr ShellExecute(
IntPtr hwnd,
string lpOperation,
string lpFile,
string lpParameters,
string lpDirectory,
ShowCommands nShowCmd);
ShellExecute(IntPtr.Zero, "open", "explorer.exe", @"F:", "", ShowCommands.SW_NORMAL);
loclally it's working fine but when i hosting iis it's not working
let me know how to sove this
Thanks and advance.........