Question:
I need some help coding?
anonymous
2014-02-03 22:00:14 UTC
I created this batch file to make creating symbolic links on windows easier.

@echo off
:start
cls
echo nothing you type can have spaces including folders
echo What is the real folder?
set/p "realfdr=>"
cls

echo Where should the link go? (ex. C:\users\john\files)
set/p "linkdir=>"
cls

echo What should the link be called?
echo (will create C:\users\john\file\"whatever you put")
set/p "fdrname=>"
cls

echo Are you sure you want to make the link
echo %linkdir%\%fdrname% that leads to %realfdr%
echo if so type yes
echo if not type no to start over
set/p "cho=>"
if %cho%==yes goto :make
if %cho%==no goto :start

:make
mklink /J %linkdir%\%fdrname% %realfdr%
echo %linkdir%\%fdrname% created press enter
echo to quit
pause

is there any way to make this with into an exe with a gui for example visual studio?
Three answers:
Devesh
2014-02-03 22:12:31 UTC
Yes, you can convert this .bat file to .exe file here - http://www.f2ko.de/programs.php?lang=en&pid=ob2e



But No, you cannot directly convert this Console Application to Graphical Application. Since, there is no option to convert console applications to Graphical applications, so, you must have good knowledge in modern Programming Languages such as C, GTK+, C++, gtkmm, Ruby, Python, PyGTK, Java, PHP-GTK etc. If you want to make use of your Console based batch application then you can link different function created in these language to you batch applications.
Jim
2014-02-04 06:30:02 UTC
you MAY need to escape <|> with ^ for example ^> so it does not cause a redirect.

at least when using echo, you probably didn't know about this, but hope it helps.

no there is not, not without translating into a different language. code it in .VBS

http://msdn.microsoft.com/en-us/library/t0aew7h6%28v=vs.84%29.aspx

http://www.completelyfreesoftware.com/gp3_w95.html
MANTU
2014-02-04 06:38:05 UTC
You can google batch to exe converter. It converts batch to exe but the screen will be as you would see it in a batch file.. The only advantage is that no one could view your code..


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...