i need to creates an automated form that detect the current destination path of the application setup wizard and copies a certain folder then asks where to save this folder so i can use it in a setup wizard.
i hope that my question is clear and thanks in advance. :)
you can use this code.. this code can copy the file you want and save it onto a folder.
Try find = New OpenFileDialog find.FileName = "" find.Filter = "File Formats(*.pdf;*.xlsx;*.xls)|*.pdf;*.xlsx;" If find.ShowDialog = Windows.Forms.DialogResult.OK Then filename = find.FileName.ToString specific = find.SafeFileName.ToString txtFilePath.Text = find.FileName placeto = New FolderBrowserDialog If placeto.ShowDialog = Windows.Forms.DialogResult.OK Then txtFilePath.Text = placeto.SelectedPath.ToString & "\" & specific specific2 = placeto.SelectedPath.ToString & "\" & specific End If If txtFilePath.Text = "" Then MessageBox.Show("No File to be copied.") Else My.Computer.FileSystem.CopyFile(sourceFileName:=filename, destinationFileName:=specific2, showUI:=FileIO.UIOption.AllDialogs) MessageBox.Show(UCase(specific) & " was successfully copied to " & UCase(placeto.SelectedPath.ToString) & ".") End If End If Catch ex As Exception MsgBox(ex.Message) End Try
I am developing a simple job card creator application with VB.net 2012, using Access 2010 as database.
The code I have generated to write data from a datagridview to the database table is successfully saving the data, but with an error "Parameter @name has no default value". The ...
write a C++ program which take inputs from the user/keyboard and calculate his ZAKAT.
get the input from user may include
-Amount invested in business
-Amount given to other business partners as loan
-Amount payable to others
I made a prime number finder, it finds the nearest prime that is above and below any integer (Does not work that well with giant numbers.)
Made this in cpp.sh
Why would I need the x=y+1-1;?
x=y; just doesnt seem to work
Why is this?
And I know my coding ...