DOS Batch to prompt user to input a file

Microsoft Windows xp professional w/serv...
July 27, 2010 at 07:41:02
Specs: Windows XP
Hi, I'm learning to use batch file have just started it. I need help.. How to make a batch file open the "Open Dialog Box" i.e. the one which pops up when u press the "Browse" button in Run box so that the user may choose a file. And then the full address of the file that is chosen should goto the batch program and must be saved as some attribute like %1% so that i can use it to run other commands using it. For example if i want to open it using notepad then i can use notepad %1%. Can someone help me out.
P.S. Check out my batch file archive which i'm making here.

See More: DOS Batch to prompt user to input a file

Report •

July 27, 2010 at 14:06:12
If you mean open the browse window to select files, I'm not sure that's possible.

However, you can manually enter the file name and location, or drag and drop the file on the the batch window.


SET /p File=""
Notepad %File%

Report •

July 28, 2010 at 03:01:44
oh darn.. that really sux. I wanted to open the select files only!! Drag and drop think kinda sux. X_X
I guess now i'm gonna try to find out how DOS was made so that i can make a personal edition of DOS and configure it to open the select box and other stuff. Do u know any good books to start reading to get a clear picture of it atleast. BTW Thanks for ur reply.

Report •

Related Solutions

Ask Question