in Education by
I write a tool using Split and Join Files Tool. My code is: foreach (String inputfiles in filename) { String outputfiles = inputfiles.Remove(inputfiles.Length - 4); System.Diagnostics.ProcessStartInfo startinfo = new System.Diagnostics.ProcessStartInfo(); startinfo.FileName = "C:\\Users\\sepdau\\Downloads\\Programs\\FFSJ.exe"; startinfo.Arguments = "/C " + "-Task=Join " + "-Input=" + inputfiles + " -Output=" + outputfiles; System.Diagnostics.Process.Start(startinfo); } return 1; With filename being a String Array of the files to Join. When inputfiles name contains blank space e.g. Lab 5.rar it won't recieve full name but something like C:\.....\Lab instead. How to get full path of inputfiles? Thank for helping :) JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Simply quote your filename: startinfo.Arguments = string.Format("/C -Task=Join -Input=\"{0}\" -Output=\"{1}\"" , inputfiles , outputfiles ); BTW, I'd rename inputFiles -> inputFile, and filename -> filenames. Multiple files should have a plural-form name; each individual file should have a singular-form name.

Related questions

0 votes
    I write a tool using Split and Join Files Tool. My code is: foreach (String inputfiles in filename) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 4, 2022 in Education by JackTerrance
0 votes
    Today I found out that putting strings in a resource file will cause them to be treated as literals, ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    Today I found out that putting strings in a resource file will cause them to be treated as literals, ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    Today I found out that putting strings in a resource file will cause them to be treated as literals, ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    When I go to command mode and type :!mycommand % I get my command executed on the current file ( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 13, 2022 in Education by JackTerrance
0 votes
    If commands are stored in an external file, say commands.R in the working directory work, they may be executed ... of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Why there is a need to move the existing directory into a new repository? How this can be done in SVN?...
asked Feb 18, 2021 in Technology by JackTerrance
0 votes
    Is it possible to add a file directly to the repository? Which command can be used for this?...
asked Feb 18, 2021 in Technology by JackTerrance
0 votes
    If I issue the find command as follows: find . -name *.ear It prints out: ./dir1/dir2/earFile1. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 26, 2022 in Education by JackTerrance
0 votes
    What is the command to reset your index as well as the working directory to the state of your last commit? A. git clean B. git reset C. git revert D. git checkout...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    Which command shows the difference between the working directory and the index or staging area? A. git status B. git diff...
asked Dec 17, 2022 in Technology by JackTerrance
0 votes
    Which of the following command allows you to change directory to one level above your parent directory? (a) ... and answers pdf, Data Science interview questions for beginners...
asked Oct 29, 2021 in Education by JackTerrance
0 votes
    Name the command to create a new directory under version control?...
asked Feb 21, 2021 in Technology by JackTerrance
0 votes
    Here is the problem I have a requirements.txt that looks like: BeautifulSoup==3.2.0 Django==1.3 Fabric==1.2.0 ... . So what went wrong? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I would like to get the list of files exist in folder and subfolder with full path.Don't want any ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
...