Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Posts: 6
Registered: ‎07-21-2012
My Device: BlackBerry 9800
Accepted Solution

Problem when -u save *.cod file using javaloader.exe

i coding a project by C# language.

When i runing comand -u save <modules> using javaloader.exe,  then only save file .cod to same folder with javaloader.exe.

So, how can i  save <modules> to another Directory (Different Folder). ?
Please tell my how .! Thanks so much.!

Developer
Posts: 467
Registered: ‎07-16-2009
My Device: Z10 LE

Re: Problem when -u save *.cod file using javaloader.exe

As I know there is no possibility to set folder where you want to save cod files.

However, since you developer, you could move files programatically in any folder where you want.

Developer
Posts: 16,575
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Problem when -u save *.cod file using javaloader.exe

you could try to call javaloader from a different folder, maybe it would save the files to this folder, then? never tried it though.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 467
Registered: ‎07-16-2009
My Device: Z10 LE

Re: Problem when -u save *.cod file using javaloader.exe

Morning Simon!

 

This is also true. You could go to the folder where do you want to save files, call "<path to javaloader>/javaloader <params>" and it should save it to current folder.

New Contributor
Posts: 6
Registered: ‎07-21-2012
My Device: BlackBerry 9800

Re: Problem when -u save *.cod file using javaloader.exe

Yeah, thanks for replied.

Now i got it, in C#  i used  "FileInfo" and "MoveTo" properties.

Affter saved all *.cod file to the same dir with javaloader, i call "MoveTo"  to move all this *.cod file to my directory (folder make by myself).

That's all

 

 

Code:

                for (int j = 0; j < dem; j++)
                {
                    string filename = list_modules.CheckedItems[j].ToString();
                    FileInfo info = new FileInfo(path1 + "\\" + filename + ".cod");
                    info.MoveTo(path2 + folder_name + "\\" + info.Name.ToString());
                }

 

 


Developer
Posts: 467
Registered: ‎07-16-2009
My Device: Z10 LE

Re: Problem when -u save *.cod file using javaloader.exe

Mark your answer as solution