Opening Up Folder Directory?
Apr 25, 2009
So im making this little program my first as a matter of fact and i have been using this code
Dim Proc As New System.Diagnostics.Process
Proc.StartInfo.WorkingDirectory = "app.location"
Proc.StartInfo.FileName = ""
Proc.Start()
The problem is now i need it to just open up the "app.Location" and i cant figure out how that will only open up files correct? note: using vs 2008
View 7 Replies
ADVERTISEMENT
Feb 9, 2012
I have some problem with copying the file from one Directory to another directory by create the folder if that folder is not exists in destination directory.
Example:
Source path: C: emp est1.txt
destination path: C:Data
[code].....
View 1 Replies
Jul 22, 2011
how to copy, delete, show files, show current directory, change directory, make folder, rename folder. My problem is i have a method on deleting a file and copying a file, but i don't know how to pass the method so that when i click the delete button it would let me choose what file to delete. By the way im using buttons on each function.[code...]
View 2 Replies
Dec 12, 2011
How would I create a dir Inside %temp%? Then extract the file to it and Open a That folder. So far this is my code.
[Code]...
View 5 Replies
Oct 6, 2011
Having difficulty with the module below failing on line 21. It is telling me: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) Basically what it is designed to do is look for a directory, if that exists then look for a file in that directory. If both = True then it should open the folder to browse the files. I believe the issue is with the "Program Files" being 2 words since the script runs using a root path, but I'm not sure how to format the path correctly to make it work?
[Code]...
View 4 Replies
Mar 15, 2009
I need a code to work to simply open the my document folder.However, I tried using open file dialog:[code]
View 4 Replies
Feb 9, 2012
copying the file from one Directory to another directory by create the folder if that folder is not exists in destination directory.Example:
Source path: C: emp est1.txt
destination path: C:Data
if C:Data doesn't contains "temp" or "test" folder, it should create the folder before copy the 1.txt.[code]....
View 1 Replies
Feb 7, 2012
I need to allow the user of the form to select the directory of a .exe and then press open which will then obviously open the .exeCan anybody please tell me how to allow the user to choose their own directory and then open the file with the name that I choose.for example:They choose the path: C:program filesexampleWhen they press open, the file: filename.exe is opened.Would I be able to write the settings to a .ini file so that they do not need to select the path every time they use the program?
View 1 Replies
Mar 11, 2012
how to start a program i want to start a application from here
C:Program Filesadobe master coll and start the exe within that folder im sure it used to have process start just cant remember how to add the dir to a certain folder to get it.
View 1 Replies
Sep 8, 2011
how can i open a folder with Visual Basic, preferably with a Message Box? e.g. when the user clicks "OK" on a message, a certain folder will open.
View 3 Replies
Mar 26, 2010
How I getting path of folder without open folder dialog box in vb.net. I develop desktop application in vb.net, when I right click on folder which is selected. So I want to that selected folder path in textbox which is in my application. E.g. select folder and open folder property then we can show location : folder path and name
View 3 Replies
Jul 28, 2011
I have a VB .NET 2010 app that I created with a button to open the remote computer's C$ (administrative share). This code works fine with WinXP, but since upgrading to Win7, it won't open the folder.
Here's the code I'm using:
Shell("Explorer.exe \" & ComputerName & "C$", 1, False)
View 4 Replies
Sep 27, 2010
To open a pdf file in my vb.net application I have used the following code. This is working fine while running from code. But when I am trying to package it through setup project and run in the installed application, file not getting opened. I am adding my UserGuide.pdf file inside Database folder in Application folder of setup project.
Try
Dim lStrHelpUserManualPath
As
String =
""
lStrHelpUserManualPath = Application.StartupPath
[Code] .....
View 13 Replies
Nov 3, 2009
I have the following code used to enter the name of a text file and then display it in a richtextbox. This is working but I would like it so that I could take out the initial part of the filename detailing the location of the filename to simply set it to the project folder, is there any way of doing this using the App.path function?
My code is as follows:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
View 3 Replies
Jun 24, 2010
I can add a folder in the setup/deployment project and it gets added when my project is installed. when I do it by writing code, I get a message "access is denied", but the programme will continue to work. I eventually worked out that I had to right click the exe file (in programfiles) and run as administrator so that the directory is created (as the form loads).
View 3 Replies
Jul 27, 2010
I am trying to download a file into a directory. Basically when the user presses a button the code will make a folder and download a file into that folder. I want to make that folder inside an Atari Program Files. It Reads "C:Program FilesAtariRollerCoaster Tyccon 3 PlatinumCars..Inside the cars directory i want to make a folder but when i try it fails. but when i change the whole path to my desktop it doesn't fail.
View 9 Replies
Aug 1, 2010
i am trying to download a folder into a directory. A few days ago Acamar helped me by giving me some code but i get an error when trying to download certain folders. I was wondering if their was a way to fully download an unzipped folder to a path that is in textbox1.
View 20 Replies
Jun 17, 2009
What i would like to do, is have it load up with the settings for the users desktop.here's what i'm trying to do..when first loading a new settings file, a label with a directory as "C:Users rujadeDesktop" is created. if i install the app on a foreign p.c., when running the program for the first time, it loads the label with "C:Users rujadeDesktop". i'm trying to figure out how to load it with the user's desktop directory instead.[code]...
View 11 Replies
Mar 4, 2010
How to be able to read every folder or directory? Do I have to set my application to RUN AS ADMINISTRATOR or something?
Running some code recently using.>>
filesArray = Directory.GetFiles(fbd.SelectedPath, "*.*", SearchOption.AllDirectories)
with
[code].....
View 5 Replies
Jul 25, 2011
I've been working on some code to rename files and have being doing so by copying them to the same location under a different name and then removing the original. When I do this for files I use the code ...
Dim file As New System.IO.FileInfo(lstFiles.SelectedItem.ToString)
Dim strNewFile As String
Dim strRename As String
Dim strMask As String = ""
[code]....
This will obviously not work as it will try to copy the folder into itself which is not allowed.
View 4 Replies
May 22, 2011
I would like to create a folder with code and put it in any directory I wish. What is the code?
View 1 Replies
Apr 5, 2011
Now, i found this code to upload a file.
Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://quex.dk/file.txt"), System.Net.FtpWebRequest)
[code]....
View 6 Replies
Mar 23, 2009
When im naming a variable for a directory should i end the variable name with path, folder or directory.
View 4 Replies
Oct 22, 2009
I want to search a directory and get all the names of the "Folders" within that directory and place them into a string array. Note: No Files just folders
View 3 Replies
Nov 20, 2010
i am trying to use code to find search for a folder and it will give me back the full directory root. I am using this code:
[Code]...
View 4 Replies
Feb 2, 2010
I want to create a directory and a folder , i have 2 textboxes.
Firstly i want to open and select a path and display it in textbox 1, then i`ll use textbox 2 too create the folder.
View 6 Replies
Aug 10, 2011
IVS 2008 [RESOLVED] Directory & Folder Creation
View 2 Replies
May 17, 2009
I am using FolderbrowserDialog to access a folder. when I use FolderBrowserDialog1.RootFolder = string variable, it give me an error message"Conversion from string "x:Patients_Physics_Documents" to type 'Integer' is not valid."(1) how do I pass a predfined folder name to root folder?(2) after I use this dialog box and click ok, how do I obtain the name of this directory?
View 2 Replies
Jul 14, 2011
I have a task..Since im a beginner in VB, how do i create the program which can compress the folders in Directory ( D:BackupFolderName) automatically in turn..I have around 20 folder in this directory..(20110501-20110520)..I need to use Loop or which statement?this is compress codes to compress one folder automatically..
[Code]...
View 2 Replies
Jun 21, 2010
i'm trying to have 2 browse file dialog boxes, one that allows you to select a file from a folder, and the other folder should allow you to chose the location to copy the file to.
View 2 Replies