Click here to Skip to main content
15,907,906 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionOutlook Add-In to Enhance Send Functionality Pin
John Thelen5-Nov-07 16:20
John Thelen5-Nov-07 16:20 
QuestionSave File Pin
Socheat.Net5-Nov-07 16:06
Socheat.Net5-Nov-07 16:06 
GeneralRe: Save File Pin
Mitch F.5-Nov-07 18:53
Mitch F.5-Nov-07 18:53 
QuestionChanging Mouse Cursor Pin
Widgets5-Nov-07 13:51
Widgets5-Nov-07 13:51 
AnswerRe: Changing Mouse Cursor Pin
Christian Graus5-Nov-07 15:43
protectorChristian Graus5-Nov-07 15:43 
QuestionNewbiw VB Help required Pin
rayvb5-Nov-07 12:15
rayvb5-Nov-07 12:15 
AnswerRe: Newbiw VB Help required Pin
Christian Graus5-Nov-07 15:44
protectorChristian Graus5-Nov-07 15:44 
QuestionFolder Properties Pin
ChadYKK5-Nov-07 10:48
ChadYKK5-Nov-07 10:48 
I am writing a program to update some of my files that I have on other computers. It is simple and just transfers the files from a cd to a given location. The location is a read-only folder. I need to change this property by using code before I can copy the new file to the location and then return the folder to read only. I already have the code to transfer the folder but I need to code to change the property of the folder from read-only = true to read-only = false. This needs to occur before the file is moved. I do not know where to start so any help will be appreciated.

I have this:

Dim str_ToPath As String = "C:\Folder\myFolder"
Dim str_FromPtath As String = System.IO.Directory.GetCurrenDirectory()
Dim localfile As String = "myfile"
Dim fso, file

' Get handles to folders current location.
fso = CreateObject("Scripting.FileSystemObject")

'Here is where I need the code to check if the folder is read-only or not and
' change if it is read-only. The folder will be the str_ToPath folder.

file = fso.GetFile(str_ToPath + localfile)
' Delete the folder.
file.Delete()

file = fso.GetFile(str_FromPath + localfile)

' Copy the file to correct location.
file.Copy(str_ToPath + localfile)
AnswerRe: Folder Properties Pin
Christian Graus5-Nov-07 15:46
protectorChristian Graus5-Nov-07 15:46 
GeneralRe: Folder Properties Pin
ChadYKK6-Nov-07 2:09
ChadYKK6-Nov-07 2:09 
QuestionUsing VB.NET controls in Commercial Applications Pin
jsp_15-Nov-07 9:28
jsp_15-Nov-07 9:28 
AnswerRe: Using VB.NET controls in Commercial Applications Pin
Christian Graus5-Nov-07 15:47
protectorChristian Graus5-Nov-07 15:47 
GeneralRe: Using VB.NET controls in Commercial Applications Pin
jsp_18-Nov-07 1:26
jsp_18-Nov-07 1:26 
QuestionCatching errors v2 Pin
svanwass5-Nov-07 7:01
svanwass5-Nov-07 7:01 
AnswerRe: Catching errors v2 Pin
nlarson115-Nov-07 7:48
nlarson115-Nov-07 7:48 
QuestionAdding Problem Pin
Cedrickdeorange5-Nov-07 5:49
Cedrickdeorange5-Nov-07 5:49 
AnswerRe: Adding Problem Pin
Kschuler5-Nov-07 7:37
Kschuler5-Nov-07 7:37 
AnswerRe: Adding Problem Pin
svanwass5-Nov-07 7:39
svanwass5-Nov-07 7:39 
AnswerRe: Adding Problem Pin
Cedrickdeorange5-Nov-07 8:52
Cedrickdeorange5-Nov-07 8:52 
GeneralRe: Adding Problem Pin
leckey5-Nov-07 9:59
leckey5-Nov-07 9:59 
QuestionUsing VB in Excel Pin
nick45-Nov-07 5:09
nick45-Nov-07 5:09 
Questionmysql and vb.net connection error Pin
tj285-Nov-07 4:57
tj285-Nov-07 4:57 
AnswerRe: mysql and vb.net connection error Pin
DigiOz Multimedia5-Nov-07 5:20
DigiOz Multimedia5-Nov-07 5:20 
AnswerRe: mysql and vb.net connection error Pin
tj285-Nov-07 17:29
tj285-Nov-07 17:29 
QuestionApplication Exits at the beginning. Please Help [modified] Pin
s3rro5-Nov-07 3:55
s3rro5-Nov-07 3:55 

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.