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

Strange script behavior

$
0
0
Hi,   Greetings to all forum members
 
 
I don't know if I post in the correct forum section, sorry if I made a mistake
 
 
I have a strange behavior of myscript:
 
#RequireAdmin Opt("ExpandEnvStrings", 1) Opt("ExpandVarStrings", 1) Local $bak = ClipGet() Run(@ComSpec & " /c " & 'fnr --cl --find $bak$ --replace D:\ --dir %USERPROFILE%\sosttext --fileMask *.* --silent', "", @SW_HIDE)
(fnr is program to replace text strings)
When I run it from Scite editor or after I compiled it from windows prompt or double click, it works great,
but when I insert it in a batch file (that's what I need) I have the following error:
ERROR: The option --dir is mandatory, you must define it.
 
This is my batch file:
 
FOR %%n IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%n:\partizionedati.txt SET DiscoD=%%n: findstr .. %DiscoD%\dati.txt |clip start %DiscoD%\myscript.exe
 
 

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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