Hi,,
i want to run some command in the command prompt at back-end side.so can u plz tell me how can i run commands in command prompt at back-end side??
e.g.when user selects any folder using folderbrowsing ,i want to hide that folder using attrib command .i want to run all this things in back-end...
Thanks in advance....Please help me...I am waiting for sollution.
Loading

Kirtan PatelRank #292 · 8.6K reputationPosted Jun 28, 2009, 10:14 PM EDT
using System.IO; private void button1_Click(object sender, EventArgs e) { FolderBrowserDialog fbd = new FolderBrowserDialog(); if (fbd.ShowDialog() == DialogResult.OK) { string FoldertoHide = fbd.SelectedPath.ToString(); File.SetAttributes(FoldertoHide, FileAttributes.Hidden); } }manohar vakkala66 reputationPosted Oct 15, 2009, 2:20 AM EDT
jingeRank #2,527 · 554 reputationPosted Oct 15, 2009, 9:46 PM EDT
I think you can add read or write permisson to the folder, so the user without enough permission can not read or write the file or folder even he can see it.