this works fine in XP bu not with vista and 7 due to permission issues, i think
Code:Shell "C:\Windows\Temp\myinfo.bat C:\Windows\Temp\outfile.txt", vbHide
so i was thinking about doing something like below but im getting a file not found and the file is there. so i guess the code is wrong but cant get it right
when i doCode:Shell Environ("temp") & "\myinfo.bat" > Environ("temp") & "\outfile.txt"
the path has spaces and i get "C:\docume~1\" so my code needs to add quotes but cant get the code right. any help?Code:MsgBox Environ("temp")




Reply With Quote