Save File In Subdirectory?
Jan 17, 2012I am opening one file checking some number on that then saveing that number in varaible renaming same file using that number.
View 1 RepliesI am opening one file checking some number on that then saveing that number in varaible renaming same file using that number.
View 1 RepliesI am trying to create and add text to a file.When the code runs, sAppDirectory shows a subdirectory as indicated below, but an exception is thrown because the subdirectory doesn't exist. Windows Explorer shows a " . . . DocumentsMy Documents . . . " structure but the sAppDirectdory doesn't show the "My Documents" in the string. Where did it go?Is there a way I can keep this automatic rather than having to "hard code" the pathname?Or, how can I access the Public subdirectory for the output file(s) via an automatic method? See the code below.[code]....
View 6 RepliesI am writing a program that needs to be able to copy a directory from C:Folder to a folder inside My Documents.I am aware of the My.Computer.FileSystem.SpecialDirectories.MyDocuments which places the directory in the root of My Documents. I however, want to copy the said folder to 'My DocumentExampleFolderFolder1'
View 1 RepliesWhat I'm looking to do is access a DLL in a subdirtory. So instead of doing this
\debug\App.exe
\debug\lib.dll
I want to do this,
[code].....
Anybody here downloaded the book of Tim Patrick "Programming Visuall Basic 2008? In page 172 it says: Extra Credit: Adding an Icon If you've still got a little energy left, we can make one more change before this chapter runs out of paper: adding a custom icon to the main form. Just follow these stepby-step instructions:
[Code]....
I want to list all files in a subdirectory on istostorage[code]...
View 1 RepliesI'm using ASP.NET 4 / VB.NET / IIS to build a web application. Folks will access the web application via a URL like so: [URL] So, for example, here is the urls for Jane Doe, John Doe, and James Doe respectively: [URL] I need to somehow pass them off (no matter what name is entered) to a default.aspx page which then pulls in the name portion of the url and uses it to perform a lookup against the database which contains info. about this particular person and displays a personalized page based on that information.
[Code]...
How can i delete a directory having subdirectory inside it which is not empty.
View 3 RepliesI am using VS 2005. I tested this code My.Computer.FileSystem.MoveDirectory("D:dir1","D:dir2") when I am moving a source directory to a destination directory its moving all subdirectory of source directory except the main directory... like the above code.... "dir1" not moving into "dir2" itself its moving all subdirectory of "dir1" into "dir2" except the main directory "dir1" itself..
View 2 RepliesHow can i create a directory and subdirectorys?? for example how can i create the following directorys and subdirectorys:
[Code]...
Any VB example of batch printing pdf files from a dos/windows subdirectory (with only Acrobat Reader installed)? I've got a folder full of pdf's (30 or 40) and I need to fire them off to the networked Laserjet. Also, is there a way in VB, to set the "full duplex" (double-sided) printing option for an HP Laserjet (PCL6)?
View 2 RepliesI am trying to find a way to allow my users to choose the directory to save files into, THe file name is automatically generated as it has a naming convention and i am able to pre program a location to save to but i d like to be able to allow my users to decide themselves which directory they want to save the files to and to have the ability to choose which directory to save to
[Code]...
i have made a downloader . i use save file dialog to save file but when open save file dialog it does not get the file name and file extension from the source....please help me to make a file downloader which gets the file name and extension automatically from web. my downloader downloads file succesfully but doesn't show its real extension and file loses its default extension.
View 1 Replieshere's my nut for the day.. i want to save a file to a folder. here is the code i have:
[Code]...
im trying to create a text file with some details that ive put into some text boxes.I got on screen
3 textboxes
2 buttons (which i would like to get their text from)and then 1 button to save details and exit.I got the coding place but i dont want a a dialogue box to come up i just want to save the stuf to a set folder location, will need to read the textfile to the same area, incase the user wants to change the data. Struggling to understand the my stream section in my books.
Dim saveFileDialog1 As New SaveFileDialog()
saveFileDialog1.Filter =
"txt files (*.txt)|*.txt|All files (*.*)|*.*"[code]......
i am coding a sound recorder with VB2010, how to save/export the object file to .WAV file with save button?
Public Class SoundRecorder
Dim soundrecord As Object
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA"
[Code].....
Dim sw
As StreamWriter
Dim flagX
As
Boolean
[code]....
I am attempting to write a playlist for my media player which is already built. I have found a way to build a playlist for it but it would be helpful if I could save the contents of TextBox1 to a text file without using the save as. I am trying to get over a user inputting a file name for the finished text file so is it possible to write the file c: est.txt without using the save as dialog? I have found that I can use a vbs program file which creates a playlist in a folder. I save the vbs file text to the textbox then save it as a vbs file in the playlist directory, then execute the finished file to make the playlist.
View 5 RepliesI have researched the net, youtube, and the msdn DB, and still can not find the working answer I am looking for. I would like someone to show me how you would save the contents of "Listbox1" to a .txt file using the "Save As" Option. I know how to hardcode a savepoint in, but since there will be multiple users I would like the option to be up to the end-user.
View 4 RepliesIm trying to save a file in XML and offer the user a save dialog to appear so they can name the file. The file will save using a custom file extention. The problem is I keep getting off the wall suggestions and Im looking for a simple solution. Here is what I have, please only show examples using my syntax based code. Im still a bit new to Vb so posting off the wall examples
[Code]...
i made a vitual dekstop and i have a few problems that to be fixed. The first problem i have is that i have a picturebox as the entire form like the desktop background but the progrblem is that i have some group boxes over that picturebox box. How can i make so you can see throw the group box so that you can see the image behind it. And how can i save a picturebox image without a save file dialog
View 5 RepliesMy question is simple (the answer may not be...), What I am looking for is a way to save a file as an encrypted file (so know one can open it except in visual basic or a way to save it with a unique ending that only visual basic will recognize. I will also need to know of a way to open or load the file to.
This is going to be used in a game I am working on (and yes...I know visual basic isn't really meant for games, but it is coming together pretty well). I was originally going to have it save as a text file, but then everyone could open, read it and even change there stats. That is what this file will contain, the stats for their character, and when they load it, it will place the values into the correct spot.
I am a partial beginner or intermediate coder, I can understand code, I just don't know all there is, like saving and loading, and this is probably a little harder.
I have a website written in .net 4. I'd like to include a save button on one the pages that will save the webpage as a mht file. This way the user can save the page as a mht file type on his/her desktop without have to use the browser toolbar.
I'm currently working with the following code but I need to modify it so it to capture the url of the current page the user is viewing verses hard coding the url into the button click event.
Partial Class Form1
Inherits System.Web.UI.Page
End Class
[Code].....
I have a website written in .net 4. I'd like to include a save button on one the pages that will save the webpage as a mht file. This way the user can save the page as a mht file type on his/her desktop without have to use the browser toolbar. I'm currently working with the following code but I need to modify it so it to capture the url of the current page the user is viewing verses hard coding the url into the button click event.
Partial Class Form1
Inherits System.Web.UI.Page
End Class
I am trying to save a file as a jpeg. So far the save dialog box opens and it seems to save but I can't open the saved file to see it.
[Code]...
I am on the last stage of my web automation form for my business and now all it wants me to do is click "Run, Save or cancel" in the normal IE download file popup. The first problem is if i click save (the option i want to do) the form crashes. The error i get is: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
[Code]...
i need to read binary file and in this file found the string and replace it with other one and save the file afterwords. I found many example to read binary, but to find and replace is for me mistery.
View 3 RepliesIts a League Organizer, basicly ive started it off with 16 teams and end up with 1(winner) 16 box's on the far left, then 8, then 4, then 2, then 1. the 16 box's have "Team 1" "Team 2" etc... ive put a new/clear/open/save button in that order.
BUT this is my problem..when i save(Save Button) the text file saves all the text wrong it ends up like this...Team 1Team 2Team 3Team 4 Etc...
But i want it to save like this
Team 1
Team 2
Team 3
Team 4
Etc...
The code is...
Dim Save As New SaveFileDialog
Save.Filter = "Text Files (*.txt)|*.txt|ALL FILES (*.*)|*.*"
[CODE]...
I'm currently developing an editor for an AFL management sim.I want to be able to load three or four multidimensional arrays to the program, then save them to the same file. I tried the tutorial on here but got completely muddled up. Why can't it be easy like in VB6 When it was like 10 lines of code tops!
View 5 RepliesI have the following coding and i would like to save it using save file dialog.
CODE: