Click here to Skip to main content
16,013,592 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB6: invicible .exe Pin
Richard MacCutchan7-Jun-10 7:07
mveRichard MacCutchan7-Jun-10 7:07 
AnswerRe: VB6: invicible .exe Pin
Anshul R8-Jun-10 19:58
Anshul R8-Jun-10 19:58 
GeneralRe: VB6: invicible .exe Pin
Mschauder9-Jun-10 2:33
Mschauder9-Jun-10 2:33 
AnswerRe: VB6: invicible .exe Pin
Anshul R8-Jun-10 19:58
Anshul R8-Jun-10 19:58 
GeneralRe: VB6: invicible .exe Pin
Mschauder9-Jun-10 2:36
Mschauder9-Jun-10 2:36 
GeneralRe: VB6: invicible .exe Pin
Anshul R9-Jun-10 3:36
Anshul R9-Jun-10 3:36 
AnswerRe: VB6: invicible .exe Pin
Аslam Iqbal11-Jul-10 0:15
professionalАslam Iqbal11-Jul-10 0:15 
QuestionHow to Change the default location of file --- VB.NET Pin
mominafiz6-Jun-10 21:48
mominafiz6-Jun-10 21:48 
I am making a VB.NET web application in VS.NET 2008.

I am using streamwriter to write in the file. I am using filestream to create a new file

Dim fs As New FileStream("'" & FN & "'.txt", FileMode.CreateNew, FileAccess.Write)

using above line create the file in the default directory i.e (C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE)
But i want to store my files in my defined directory say ("C:/HMSFiles/PPFiles/")

how to replace the default directory with defined directory??
how to read the file from the defined directory?

if i want to store these files on the server how to do this??


Here is the code:
Dim FilePath As String = ("C:/HMSfiles/PPFiles/")
                
Dim fs As New FileStream("'" & FN & "'.txt", FileMode.CreateNew, FileAccess.Write)
Dim s As New StreamWriter(fs)
pretestcatch = pretestTA.Text
posttestcatch = posttestTA.Text

s.WriteLine("PRE TEST PRECAUTIONS:")
s.NewLine = ""
s.Write(pretestcatch)

s.WriteLine("POST TEST PRECAUTIONS:")
s.NewLine = ""
s.Write(posttestcatch)
s.Close()

AnswerRe: How to Change the default location of file --- VB.NET Pin
Johnny J.6-Jun-10 22:35
professionalJohnny J.6-Jun-10 22:35 
GeneralRe: How to Change the default location of file --- VB.NET Pin
mominafiz7-Jun-10 0:16
mominafiz7-Jun-10 0:16 
GeneralRe: How to Change the default location of file --- VB.NET Pin
Johnny J.7-Jun-10 0:20
professionalJohnny J.7-Jun-10 0:20 
Questionbit shift problem Pin
tuolesi6-Jun-10 3:36
tuolesi6-Jun-10 3:36 
AnswerRe: bit shift problem Pin
Luc Pattyn6-Jun-10 4:02
sitebuilderLuc Pattyn6-Jun-10 4:02 
GeneralRe: bit shift problem Pin
tuolesi6-Jun-10 4:25
tuolesi6-Jun-10 4:25 
GeneralRe: bit shift problem Pin
Luc Pattyn6-Jun-10 4:33
sitebuilderLuc Pattyn6-Jun-10 4:33 
AnswerRe: bit shift problem Pin
Dave Doknjas6-Jun-10 11:19
Dave Doknjas6-Jun-10 11:19 
QuestionConfusion around events in my plugin framework Pin
Sonhospa6-Jun-10 2:04
Sonhospa6-Jun-10 2:04 
QuestionHow to match between two images? Pin
phowarso5-Jun-10 16:07
phowarso5-Jun-10 16:07 
AnswerRe: How to match between two images? Pin
Dr.Walt Fair, PE5-Jun-10 16:59
professionalDr.Walt Fair, PE5-Jun-10 16:59 
AnswerRe: How to match between two images? Pin
Anshul R8-Jun-10 20:02
Anshul R8-Jun-10 20:02 
AnswerRe: How to match between two images? Pin
mvdcorput11-Jun-10 22:57
mvdcorput11-Jun-10 22:57 
QuestionDRAWIMAGE to Print Image Pin
Anubhava Dimri5-Jun-10 2:08
Anubhava Dimri5-Jun-10 2:08 
AnswerRe: DRAWIMAGE to Print Image Pin
Luc Pattyn5-Jun-10 2:55
sitebuilderLuc Pattyn5-Jun-10 2:55 
GeneralRe: DRAWIMAGE to Print Image Pin
Anubhava Dimri6-Jun-10 18:45
Anubhava Dimri6-Jun-10 18:45 
GeneralRe: DRAWIMAGE to Print Image Pin
Luc Pattyn7-Jun-10 1:13
sitebuilderLuc Pattyn7-Jun-10 1:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.