didn't know where to put it so i put this question here: i making a program(exe) , i know how to excute, but i want to know where am i on the hard disk so i know where to save my output file so the user can download. ~ dosn't work on exe files can anybody pleas help? thanks
You can use Server.MapPath to get the relative path to your directory where the file exists thru a web form. e.g ' the current directory currDir = Server.MapPath(".") ' the parent directory parentDir = Server.MapPath("..") ' the application's root directory rootDir = Server.MapPath("/") Vikram DiscountASP.NET www.DiscountASP.NET
We aren't allowed to run executables on the server. If you simply want to allow your friends to D/L it archive the file first, ZIP or RAR work best for this.
i don't want my friends to download. i want them (useres) to download a screensaver that they choose to make, so i need to excute it to make there screen saver. and am excuting it just fine (or without an error even with try / catch (i don't get errors)) anybody know a way i can get a relative path throw applactions (like ~ with web forms)? thanks