PDA

View Full Version : Dialog.FolderBrowse problem


mohab1
12-04-2008, 03:46 AM
hi
i am sooooooo bad :rolleyes
i create progect and i want to select special folder (DefaultFolder)
i create these action but it dosen't work

dir = TextFile.ReadToString(_SourceFolder.."\\mohab_q.dll");
Dialog.FolderBrowse("Please select a folder:", dir.."\\AutoPlay\\Docs");



thank you

mohab1
12-04-2008, 09:51 AM
upupupupupupupupupupupupupupupup

rexzooly
12-04-2008, 10:45 AM
"\\mohab_q.dl l"

this dose not look right @ all why is thre a | in the name?

Dialog.FileBrowse(true, "Open", "", "AllFiles (*.*)|*.*|", "*.*", "*");

Imagine Programming
12-04-2008, 11:16 AM
"\\mohab_q.dl l"

this dose not look right @ all why is thre a | in the name?


That's because V-Bulletin is tripping sometimes (it's actually "mohab_q.dll")

mohab1
12-04-2008, 11:24 AM
"\\mohab_q.dl l"

this dose not look right @ all why is thre a | in the name?

Dialog.FileBrowse(true, "Open", "", "AllFiles (*.*)|*.*|", "*.*", "*");

i remove it
dosen't work

mohab1
12-04-2008, 12:08 PM
===up up up up up ==

rexzooly
12-04-2008, 12:10 PM
i see your problem the .dll is a fixed file not a path there for when you are looking for the path in the dir its

"C:\thisfolder\mohab_q.dll\Autoplay\Docs"

So this would be a invalied file path.

mohab1
12-04-2008, 12:15 PM
i see your problem the .dll is a fixed file not a path there for when you are looking for the path in the dir its

"C:\thisfolder\mohab_q.dll\Autoplay\Docs"

So this would be a invalied file path.

no my path
D:\\mohab
the path inside mohab_q.dll (file)

D:\\mohab
and i want to complete it
D:\\mohab+\\AutoPlay\\Docs
=
D:\\mohab\\AutoPlay\\Docs

dir

rexzooly
12-04-2008, 12:36 PM
_SourceFolder..\\Autoplay\\Docs


I can't think of it more simple then that?

mohab1
12-04-2008, 12:38 PM
_SourceFolder..\\Autoplay\\Docs


I can't think of it more simple then that?
you mean
"Autoplay\\Docs":D
no the file
not in SourceFolder
example
the project file in
c:\\mohab\\Autoplay\\Docs
but i meaN
THE FILE
Autoplay\\Docs
not in SourceFolder
example
d:\\Autoplay\\Docs

mohab1
12-04-2008, 06:18 PM
upupupupupupupupupupupupupupupupupupupupupupup

Imagine Programming
12-05-2008, 04:43 AM
upupupupupupupupupupupupupupupupupupupupupupup

Please be a little patient...

mohab1
12-05-2008, 12:00 PM
patient :)

rexzooly
12-05-2008, 12:42 PM
Well you need to make your self way more clear cos i just replyed what you
asked and not your saying thats not what you want explane more please.

mohab1
12-05-2008, 03:39 PM
Well you need to make your self way more clear cos i just replyed what you
asked and not your saying thats not what you want explane more please.

maybe the problem in windows 7

can you tray it in windows xp or windows vista
1- create new text file write inside file path for example "c:\\" save file "example.dll" in the SourceFolder (project)
2-add this action
-------read file you write in file this path c:\\ and result = dir -----
dir = TextFile.ReadToString("\\example.dll");

Dialog.FolderBrowse("Please select a folder:", dir.."AutoPlay\\Docs");
the defaultfolder after run
Dialog.FolderBrowse("Please select a folder:", dir.."AutoPlay\\Docs");
to
Dialog.FolderBrowse("Please select a folder:","c:\\AutoPlay\\Docs");

i am sorry but my english language bad some thing:o

thank you :)

reteset
12-05-2008, 04:48 PM
Actions are doing their job well

try this with button. you will see , it works well

dir = TextFile.ReadToString("\\example.dll");

sz_temp = dir.."AutoPlay\\Docs"
result = Dialog.Message("Notice", sz_temp, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

Dialog.FolderBrowse("Please select a folder:", dir.."AutoPlay\\Docs");

there is only one problem
specified path does not exist and choose folder dialog
shows the default path (Desktop)

make sure that does folder exist with Folder.DoesExist()

mohab1
12-05-2008, 05:26 PM
Actions are doing their job well

try this with button. you will see , it works well

dir = TextFile.ReadToString("\\example.dll");

sz_temp = dir.."AutoPlay\\Docs"
result = Dialog.Message("Notice", sz_temp, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

Dialog.FolderBrowse("Please select a folder:", dir.."AutoPlay\\Docs");

there is only one problem
specified path does not exist and choose folder dialog
shows the default path (Desktop)

make sure that does folder exist with Folder.DoesExist()

dosen't work
the problem usualy in windows 7

but the path in dialog masseg =C:\\AutoPlay\Docs
and the folder exist
thank you

mohab1
12-05-2008, 06:00 PM
and this dosen't work

dir = TextFile.ReadToString("\\example.dll");
dir2=dir.."AutoPlay\\Docs"
Debug.ShowWindow(false);
path_parts = String.SplitPath(dir2);

path_parts = {Drive=path_parts.Drive,Folder=path_parts.Folder.."\\",Filename=path_parts.Filename,Extension=path_parts .Extension};
result_path = String.MakePath(path_parts);

result = Dialog.FolderBrowse("Please select a folder:", result_path.."\\\\");

mohab1
12-05-2008, 06:14 PM
any one can fix this problem

and thanks
all for try to help me

:)

patient..:)

mohab1
12-06-2008, 10:25 AM
any bode tray it in another windows ??