[RESOLVED] Output batch file to text file both are in user temp folder
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
Code:
Shell Environ("temp") & "\myinfo.bat" > Environ("temp") & "\outfile.txt"
when i do
Code:
MsgBox Environ("temp")
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?
Re: Output batch file to text file both are in user temp folder
I would be surprised if the UAC lets you write anything to the Windows tree
Re: Output batch file to text file both are in user temp folder
Quote:
this works fine in XP bu not with vista and 7 due to permission issues, i think
if it is having permission issue then USER Account Settings Will solve this issue obviously. just minimize the Slider of UAC Down .and then
try to run the project .hope this might be useful .
Re: Output batch file to text file both are in user temp folder
try like
vb Code:
shell """" & environ("temp") & "\myinfo.bat"""
same for other path