Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

File path

$
0
0
Hi, Am trying to pass the folder path in the RUN function but its not working, its giving me no result. The code snippet is...

----------------------------------------------------------------------------
$FolderPath = """C:\Program Files (x86)\MyProduct\ABC Enterprise"""

Run(@ComSpec & " /c " & """" & @ScriptDir & "\" & "sigcheck.exe""" & " -a -s -q -v " & "" & $FolderPath & "" & " >> " & @ScriptDir & "\Precheck\" & "sigcheck.txt", "", @SW_HIDE)
----------------------------------------------------------------------------

If I give the path directly in the RUN function then it works...like below...


Run(@ComSpec & " /c " & """" & @ScriptDir & "\" & "sigcheck.exe""" & " -a -s -q -v " & "C:\Test" & " >> " & @ScriptDir & "\Precheck\" & "sigcheck.txt", "", @SW_HIDE)

Can someone help please?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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