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

pass variables from a bat to an autoit exe or script

$
0
0

hello  everyone and thank you in advance for the support.i m using a software called watchdirectory

 

i setted it to watch a folder for any newly created file

 

when a newly created file exist it should execute a bat

 

in this bat

 

 

notepad c:\monitoreddir\%wdfile_b%.%wdfile_e% (notice tha this variable is a special envirointment variable setted when the monitoring task by watchdirectory is running)

 

set filename=%wdfile_b%

 

autoitexescript.exe

 

 

here te autoit script goes and modify some values of the txt window

 

to do so i need to activate the notepad window but if the file name changes every time i can so i was thinking is it possible to  pass to autoit %filename% variable that was inside the bat and then compile the script as an exe ? if yes how ?

 

regards


Viewing all articles
Browse latest Browse all 12506

Trending Articles



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