Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21243

Shell does not work in windows 7 and 8 pc for openfile command bat files

$
0
0
I am running a bat file in my vb6 code as shown below
Code:

Shell(Chr(34) & GetOpenFileList & Chr(34), vbMaximizedFocus)
The bat file content is
Code:

openfiles /query /FO CSV >> D:\OpenFileList.txt
It works properly in windows xp professional, but does not work in windows 7 and 8.

But double if run the bat file manually as administrator then it does work.
So what is error in my vb6 code?

Viewing all articles
Browse latest Browse all 21243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>