##vbScript - Browse for Folder or File Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. Some scripts need input (other than from the command line) from the user. This can be read from the console (StdIn) or from a pop-up textbox (InputBox). This is fine for simple input but you certainly wouldn't want to have to type a folder or file name, especially when it might include a lengthy path. There are several ways to avoid typing a long folder or file name. If you create a shortcut to your script on the desktop you …

Member Avatar
+0 forum 0

I have a client who wants me to come up with js code to attach an image from a visitor's computer to a form to email to the client.

Member Avatar
+0 forum 0

I am only asking How do I display the first frame of a video in a small box near the videos name onto my browse webpage?

Member Avatar
Member Avatar
+0 forum 2

Hello Community, I was wondering if there is a way to pass a file from my computer (eg. using the <input type="file"/> script) to my api on my website?

Member Avatar
Member Avatar
+0 forum 1

Dear Sir/Madam, I have created some ASP pages in my computer and stored those pages into the web site content directory (in my case C:\PanWeb) and IIS's Virtual Directory alias is "abcweb" created with the IIS V5.1 However, i can browse those pages in my computer by putting the 127.0.0.1/abcweb/ (only index page) or 127.0.0.1/abcweb/main.asp or localhost/abcweb/main.asp in the address bar of the web browser. But, i can't browse those pages from other computer of my home/office network. Please guide me to access those ASP pages from other computer of my home/office network. However, i have tried like this.. <my …

Member Avatar
Member Avatar
+0 forum 2

Dear sir, I need your help for VB.net 2008. Currently i am MCA student. I have develope a small apllication. I required help for Browse button & Print button. Browse button can accept path of image from any drive & of any type. And print button gives command of print to connected printer. So please help me. Thanks & Best Regards, Bharat Bodage 9561374795

Member Avatar
Member Avatar
+0 forum 5

Hello! I need code that will allow the user to do the following: 1. Select a browse button and choose the folder they want to save a file once the exe file at the end of the program runs 2. Display the folder location the user selected in the textbox next to it Basically this is a save dialog box but since this is a web application and not a web form I can not use the dialog boxes. Here is the code I have so far, I am thinking its not right so please help me with this! [CODE]Protected …

Member Avatar
Member Avatar
+0 forum 1

I am writing program that should allow the user to hit a browse button and be able to browse in their local directory to select a folder that they will later on save a file to. I know you can do this in windows forms but since I am using a web application in vb.net I don't have this option. Here is the code I have so far, please help! [CODE]Protected Sub Browse_Click(ByVal sender As Object, ByVal e As EventArgs) Dim FilePath As Object = "C:/Temp" [COLOR="Red"]System.Web.HttpResponse(Response = System.Web.HttpContext.Current.Response[/COLOR]) Response.ClearContent() Response.Clear() Response.ContentType = "text/plain" Response.AddHeader("Content-Disposition", "attachment; filename = " + …

Member Avatar
+0 forum 0

I created some code for a browse buton and it works, but I want to send the textbox information to the text file according to the headings that I have listed within it. I am getting an error when I put [CODE]Handles Browse.Click[/CODE] and I get errors whenever I try to add [CODE]Response.Write(Me.username.Text)[/CODE] and etc...to output all the textbox information from the form. Below is my code, please tell me what I am doing wrong and what I can add in to get this done... Thank you! [CODE] Protected Sub Browse_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Browse.Click …

Member Avatar
+0 forum 0

I created a browse button and it will allow the user to either open or save a file to their directory, but the problem I am having is how to be able to view the path location in a textbox so the user can see where they saved it... here is what I have so far: [CODE] string FilePath = "C:/Users/oZ012D/My Documents/ExporterOutput.txt"; if (!File.Exists(FilePath)) { using (StreamWriter sw = File.CreateText(FilePath)) { sw.WriteLine("Hello"); sw.WriteLine("And"); sw.WriteLine("Welcome"); } Response.Write("Success!"); } using (StreamReader sr = File.OpenText(FilePath)) { string s = ""; while ((s = sr.ReadLine()) != null) { Console.WriteLine(s); } }[/CODE] This looks like …

Member Avatar
+0 forum 0

I wrote code that will send all my textbox information to a text file. It successfully goes there but it is all in one line and in no type of order. What I wanted to do was have it in on line spaced correctly and possibly with column headers to help the user better understand what was output. Also since multiple users will be using this code I wanted to space each output line by a blank line. If someone could help me or point me in the right direction that would be great! Thank you! here is the code …

Member Avatar
Member Avatar
+0 forum 3

I have code for a browse button and I wanted to know how to write the code to output a sucess message if it saves correctly. Also how to output the file path to a textbox... here is the code I have so far... [CODE] protected void Browse_Click(object sender, EventArgs e) { string FileName = "ExporterOutput.txt"; string FilePath = "C:/Users/oZ012D/My Documents/ExporterOutput.txt"; System.Web.HttpResponse response = System.Web.HttpContext.Current.Response; response.ClearContent(); response.Clear(); response.ContentType = "text/plain"; response.AddHeader("Content-Disposition", "attachment; filename = " + FileName + ";"); response.TransmitFile(FilePath); response.Write("Username:"); response.Write(username.Text); response.Write(" "); response.Write("Authorization Level:"); response.Write(authlvl.Text); response.Write(" "); response.Write("Database:"); response.Write(DropDownList1.Text); response.Write(" "); response.Write("Dataset:"); response.Write(DropDownList2.Text); response.Write(" "); response.Write("SGMLid:"); response.Write(sgml.Text); response.Flush(); …

Member Avatar
Member Avatar
+0 forum 1

I have code (below) that opens a dialog box to either open or save a file. What I need to do though, is have the file location in the textbox next to it. Can anyone tell me the code to do that? [ICODE] protected void Browse_Click(object sender, EventArgs e) { string FileName = "ExporterOutput.txt"; string FilePath = "C:/Users/oZ012D/My Documents/ExporterOutput.txt"; System.Web.HttpResponse response = System.Web.HttpContext.Current.Response; response.ClearContent(); response.Clear(); response.ContentType = "text/plain"; response.AddHeader("Content-Disposition", "attachment; filename = " + FileName + ";"); response.TransmitFile(FilePath); response.Write("This is a test line."); response.Flush(); response.End(); } [/ICODE]

Member Avatar
Member Avatar
+0 forum 3

The End.