first...
Shell "C:\windows\program.exe", vbNormalFocus
what does the vbNormalFocus do exactly?
How would I write a program dir into the autoexec.bat file?
Printable View
first...
Shell "C:\windows\program.exe", vbNormalFocus
what does the vbNormalFocus do exactly?
How would I write a program dir into the autoexec.bat file?
vbNormalFocus or 1 means that the program will be shown as normal. Look in your VB Help file under "Shell constants". It won't be minimized or anything.
And to write a line to autoexec.bat:
[/code]Open "c:\autoexec.bat" For Append As #1
Print #1, "PATH C:\myapp"
Close #1
[/code]
thanks :-)