Output File In Same Directory As Exe
Dec 21, 2010
I'm making a GUI for a console application. I want it to save the file to /data/file.zip to anywhere the .exe is. Process.Start(Form2.TextBox1.Text, "get /folder/file.zip C:patht.zip") So if my application is in C:appmyapp.exe the output file would be in C:appdatafile.zip etc.
View 4 Replies
ADVERTISEMENT
Jul 20, 2010
I'm creating a simple .NET console application where I want to save a file in a folder that's part of the root project, like so: SolutionName.ProjectNameTestData. I want to put test.xml into the TestData folder. However, when I go to save my XDocument, it saves it to SolutionName.ProjectNameinx86Debug Console est.xml.
View 3 Replies
Mar 5, 2011
I'm new to Visual Basic so im wondering if there could be made a program when it opens it connects to directory of my website and ouput the files, so you can see them, delete, download etc.
View 4 Replies
Jun 3, 2011
Am I accessing something wrongly or missing onto something?
View 1 Replies
Sep 9, 2009
What is the best way to keep my source code separate to the output from compilation? I can change the "Build output path", but I am still getting files created in the "obj" directory whenever I compile. I want to have a directory tree that only contains source code.David Streeter
View 7 Replies
Aug 9, 2009
When adding resources into my project. what difference it makes if I choose to copy them to the output directory?
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
Jun 30, 2009
I'll tell you what I'd like to do which is to create a directory listing of every file inside a specified directory and then use a loop to upload each file in this directory to a remote folder via FTP.
[Code]...
View 8 Replies
Feb 1, 2010
I am attempting to compare two directory trees. I have the program map the network drive and copy a directory. I need it to verify that the files copied successfully by comparing the source to the destination. If comparison returns equal then perform action1, if comparison returns unequal then perform action2.
View 5 Replies
Aug 17, 2011
Is there any simple way to copy a single file out of one directory to a new one?
I tried this:
[Code]....
View 4 Replies
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
Feb 8, 2012
I want to create a file removal which revieve directory files to delete from a text file..[code]
View 2 Replies
May 13, 2011
the application is used to find a given file name in a given file directory and put messages to remind user at a given time.
View 2 Replies
Jan 23, 2010
I get mixed results in Google, so I'm wondering how can I simply launch a ReadMe.txt file in Notepad thats in the same directory as my application?
View 1 Replies
Mar 16, 2009
i just want to ask how can i save the file location or directory of a file in mysql without deleting its slashes...i tried to save it directly.. for example: the original directory is c:folderimg.jpg and when i checked it on mysql it is save as c:folderimg.jpg
View 5 Replies
Mar 1, 2012
What I am trying to do: There are three powershell scripts with different time delays as shown below.I am trying to run them asynchronously in .NET and I followed this article to implement Asyncrhonous programming. Where I am stuck:The I am not able to retrieve output after the events are invoked.The scripts are being called but then the program ends and it shows "Press any key to continue" in console windows.I don't what I am missing here.
Info: JobRequest is a class that I use to pass around information keep track of jobs.
Sub Main()
OurAsyncFunctionCalling("psDelayScript2.ps1", "-arg1 4 -arg2 5", 1)
OurAsyncFunctionCalling("psDelayScript1.ps1", "-arg1 2 -arg2 3", 2)[code]......
View 1 Replies
Feb 15, 2011
Anyways, i have coded a video downloaded and i want to include a converter as a separate exe file. But obviously people may have different file directories so a simple piece of code i have used won't work. This is what i have: Also where would i place the exe file?
View 3 Replies
Jan 23, 2010
I use this code
[Code]...
what code i use that my application pick test.pdf file from application directory.
View 4 Replies
Jun 6, 2010
I am new to programming and I am developing a simple application to convert a text which is made using SSML to a audio file,for a personal task. When I use the function
SetOutputToWaveFile or SetOutputWToWaveStream, the file can be created and played using media player, but there is an error in the file. When I use the function setOutputToAudioStream, The audio file can be created, But it can't be played with any media player.[code]...
View 1 Replies
Jul 21, 2009
Is there an easy way in Visual Basic to record values to a CSV (comma separated value) file? I would also consider recording values to an xls or xlsx if it is easier. Anyone have any experience with this? Basically, during a loop, I'd like to take the values of 3 different variables and put them on one line of a csv, then make a new line in the csv and repeat with the next segment of the loop.
View 3 Replies
Jul 23, 2009
I want to output some of the data in my VB program to a .PRN file (no commas). I'd like to have the program create a header with the data, parameter info, etc... How does one begin something like this?
View 5 Replies
Apr 1, 2012
i have this program i need to make, where it runs a bat file. i got that far, so when i click the button it opens the bat. but 3 problems i encountered i have been trying to resolve for a few days now, the problem is that i need to get the output of the .bat and display it in a textbox, i got that, but it only displays the first and least line... then i need to run the .bat in the background. so you don't see the window.then i also need to be able to hit a second button to close it. the bat is a constant update, lets just say it reads a number then 5 seconds later adds 1 to that number and displays it again. and does this over and over till you close it. that would be a simple description of this
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "C:\Users/jwoow/Desktop/Server/run.bat";
p.Start();
[Code]...
View 1 Replies
May 4, 2010
What i have realized is that when you use My.settings, a XML File is put with your EXE when your project is Published.
What you can also do is just Open that File and Change the Variable "Register" From "False" to "True"
How can i do what Most Registration files do, and make the XML File go away and Create a Unwritable file, where the values cannot be changed.
View 1 Replies
Jul 29, 2011
I'm coding a program & the program runs a .bat file with this content :
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
[code].....
View 4 Replies
Apr 11, 2011
I want to have an icon / image of a folder on my form and I want it to operate just the same as a desktop shortcut to a directory does. If clicked, it opens directory, if file / folder is dropped onto it it sends those to the specified directory.I am however going to need to use something like this:[code]
View 8 Replies
Jan 10, 2010
So I open files and do whatever with them right. I've set the initial directory to equal the last directory, but whenever I open multiple files, it never sets the directories properly. It acts as though nothing was opened there, so it takes the previous directory as the last one. Thoughts on what's not working? Here's the code.
Code:
With FileOpenDialog1
.InitialDirectory = LastDirectory
If .ShowDialog = DialogResult.OK Then
[code]....
I have multiselect enabled earlier and everything else works but this. When you open a single file, the last directory works fine. It only happens with multiselect.On another note, does anyone know why it freezes when I try to do a lot of files and use another program? I opened 700+ files to see what would happen. When I switched to a IM convo, it froze. When I left it to run, it worked.
View 3 Replies
Jan 30, 2010
Background: I'm writing a application that will allow users to enters items on a form using textboxes, radio buttons and checkboxes. I then take each input item and write it to it's own arraylist. After the user is all done entering data the information in the arraylists will write out to a single .txt file.
View 6 Replies
May 7, 2009
I am executing pdf2text in vb6 but not getting output file my code is
Call Shell("pdf2text -f example.pdf abn.txt")
it does not show any error but not giving any output
View 1 Replies
Jul 3, 2011
I'm having VB write a batch file to send to a remote system via psexec.exe later on in the script. When it goes to execute the batch file, it fails due to these junk characters showing up in the beginning of the first line. I'm creating the file like so:My.Computer.FileSystem.WriteAllText("C:Program FilesBobBob's Programadd_user.bat", "net localgroup """ & Group & """ /add DOMAIN" & UserID, True) Where Group is the local group I'm adding to and UserID is the domain login for the user.
View 7 Replies
Nov 2, 2011
I have a data source that creates a continuous stream of 24-bit samples. I can collect a set of samples and build a .WAV file, and play the file through my speakers. What I want to do is eliminate the middleman, and send the stream of samples directly to the sound card. The data source can run for hours or days. I want to hear it in real time, rather than collect it all and listen to it after the fact. The idea is that I can tune the process that creates the data better if I can hear what it's doing.
View 9 Replies