ajetrumpet
Banned
- Local time
- Yesterday, 19:56
- Joined
- Jun 22, 2007
- Messages
- 5,638
all,
i have found this batch file on a website for windows 95 and 98. it creates a folder called "NEW FOLDER" in the programs list on the start menu. in the folder it creates a shortcut to the file you specified in the .bat file command. i am trying to run this on vista, and all i see in the CMD are the commenting sections. nothing else happens. there is no debugger for DOS, so i'm wondering if anyone might see an error here, or know of a different location for .inf file, or any other file or syntax that may need to be changed for the vista folder structure. thanks! (block in red is all one line)
i have found this batch file on a website for windows 95 and 98. it creates a folder called "NEW FOLDER" in the programs list on the start menu. in the folder it creates a shortcut to the file you specified in the .bat file command. i am trying to run this on vista, and all i see in the CMD are the commenting sections. nothing else happens. there is no debugger for DOS, so i'm wondering if anyone might see an error here, or know of a different location for .inf file, or any other file or syntax that may need to be changed for the vista folder structure. thanks! (block in red is all one line)
Code:
@echo off
if %4[==[ goto syntax
if not exist %1 if not exist %1\nul goto syntax
for %%? in (%2 %3) do if not exist %%?\nul goto syntax
%5 %0 %1 %2 %3 %4 rem "{newfolder}" InstallHinfSection
[COLOR="Red"]echo > %temp%\#SHORTCUTTEST#.bat
"C:\Users\Adam\STATS.MDB" %C:\Users\Adam\desktop%
"C:\ProgramData\Microsoft\Windows\Start Menu\Programs" "STATS" %1[/COLOR]
echo > %temp%\#k#.inf [version]
echo >>%temp%\#k#.inf signature="$chicago$"
echo >>%temp%\#k#.inf [DefaultInstall]
echo >>%temp%\#k#.inf UpdateInis=Addlink
echo >>%temp%\#k#.inf [Addlink]
echo >>%temp%\#k#.inf setup.ini, progman.groups,, "group0=%6"
echo >>%temp%\#k#.inf setup.ini, group0,, ""%6""
echo >>%temp%\#k#.inf setup.ini, group0,,""%4",""%path%"",,0,"
for %%? in (call del) do %%? %temp%\#path#.bat
start/w rundll setupx.dll,%7 DefaultInstall 132 %temp%\#k#.inf
del %temp%\#k#.inf
move "%3\{newfolder}\*.*" %2 > nul
rd "%3\{newfolder}"
goto end
:syntax
for %%? in (cls echo[) do %%?
for %%? in (pause cls echo[) do %%?
:end
pause