1.

Solve : WINDOWS BROWSE AS INPUT OF BATCH FILE?

Answer»

Hi,

Can a batch file take input from windows standard browse?
If yes please suggest how to do it?

regards
JasdeepWhat does "Windows Browse" mean? It is not English.
I assume, judging by the context of the post, that he is wondering if there is a way to give the Command PROMPT a Windows Explorer GUI. Honestly, I actually have no idea what he's asking, but thats a possibility?I was thinking he meant Internet Explorer, but I think maybe you are more likely to be right. The only thing I can think of is using drag-and-drop onto a shortcut to a batch...

srry i think my ques is not phrased properly

actually i am making one batch file in which i have to copy a folder or files to a network.
so i was asking that is there any way that user can select files or folder same as they can select using windows standard GUI to select files and folder.

so i want the selected file or folder as input in batch file

any suggestions?Not to my knowledge, that may be possible in vbs or something though. You'll have to wait around for an expert to have their say.Quote from: jasdeepsg on August 30, 2007, 06:51:48 AM

srry i think my ques is not phrased properly

actually i am making one batch file in which i have to copy a folder or files to a network.
so i was asking that is there any way that user can select files or folder same as they can select using windows standard GUI to select files and folder.

so i want the selected file or folder as input in batch file

any suggestions?

1) set up a prompt, maybe set /p , so that user can key in the files/folders they want to be moved
2) set up a menu based system, where you list out the files/folders names as number bullets, then let
the user key in the numbers ( maybe using commas to separate them ) that corresponds to the files they want to move, then the batch will do the processing..eg
Quote from: ghostdog74 on August 31, 2007, 06:22:04 AM
Quote from: jasdeepsg on August 30, 2007, 06:51:48 AM
srry i think my ques is not phrased properly

actually i am making one batch file in which i have to copy a folder or files to a network.
so i was asking that is there any way that user can select files or folder same as they can select using windows standard GUI to select files and folder.

so i want the selected file or folder as input in batch file

any suggestions?

1) set up a prompt, maybe set /p , so that user can key in the files/folders they want to be moved
2) set up a menu based system, where you list out the files/folders names as number bullets, then let
the user key in the numbers ( maybe using commas to separate them ) that corresponds to the files they want to move, then the batch will do the processing..eg


thanx for yur suggestion but it there are 100's of files and folders so this is not LOOKING feasible to me and moreover i need GUI .Quote from: jasdeepsg on August 31, 2007, 07:03:23 AM
there are 100's of files and folders so this is not looking feasible to me and moreover i need GUI .

You need to learn Visual Basic or PAY a professional.

minimally,
Code: [Select]Option Explicit
Dim objDialog,result
Set objDialog = CreateObject("UserAccounts.CommonDialog")
objDialog.Filter = "Text Files|*.txt"
objDialog.Flags = &H0200 'multiple file select
objDialog.FilterIndex = 1
objDialog.InitialDir = "C:\TEMP"
result=objDialog.ShowOpen
If result =0 Then
Wscript.Quit
Else
Wscript.Echo objDialog.FileName
End If
going further than this, you have to start to learn some real PROGRAMMING...


Discussion

No Comment Found