Search the Community
Showing results for tags 'batch'.
-
Members 0 2 10 posts Posted 1 minute ago I have a littel script: AutoItSetOption("MustDeclareVars", 1) #include <AutoItConstants.au3> #include <MsgBoxConstants.au3> Local $iReturn ; Returnwert Local $iVar ; Variable Local $iBit ; Bitnummer $iVar=$Cmdline[2] $iBit=$Cmdline[3] Switch $Cmdline[1] Case 1 $iReturn=BitOr ($ivar,2^$iBit) Case 2 &n
-
So after many weekends of battling with this I finally figured it; then I automated it. This script includes icon sushi (which is used to remove the 256 x 256 elements from each .ico) and RDG (to compile the icons into dll). I had to idiot proof this for when I inevitably forget how to do it. First GUI will ask you to choose a name (among other things) for your .dll file. Next GUI is a drag-and-drop box. Drag-and-drop your .ico files into the box and click Go. Error checking is minimal; it works fine for me but YRMV. I'm no master programmer at all but if this script can help you as much as it
-
Hey guys, I am very new to using AutoIt and wrote my first little script today after reading bits and pieces on the docs. The script is designed to make an ugly batch operation a bit more user friendly for the people in the office. I have a batch file that consists of: @echo off net use B: /delete net use B: \\10.10.10.10\Share /user:domain\username It is used to log a user onto a secure share drive on my NAS. I have spoofed the share location etc. however. My AutoIt Script is: Local $passwd = InputBox("Attempting to Access B:", "Enter your password.", "", "*","M") Run("C
-
TeraCopy Timer - A program of mine, front end really, that I have been working on (on & off) for some time, but not shared here before, that I recall. Third party program TeraCopy is required. Many of you will be familiar with TeraCopy, and it has been discussed here at AF on several occasions, in various sub forums, including Chat. BE ADVISED - I still use an older version of TeraCopy (v2.27), a goody but an oldy, so have only tested my program with that. It may work with the newer v3.xx, or may be easily adjusted to do so, but I have not yet gone that route. Likewise, I only us
-
Greetings, I need write a command line to run an .exe with parameters, one this parameters is a password with special characters like: [ ] \ " etc. The password is write between double cotes too. When run this command line, catch error. I buid this function, sometimes run ok, others show error. Someone can any idea? Best ragards #include <Array.au3> Global $G_AIX_DEFAULT_PASSWORD = "******" Func Scape_Word_To_MSDOS($var = "") ;~ https://www.robvanderwoude.com/escapechars.php Local $aCharacters[][2] = [ _ ["%",
- 3 replies
-
- command line
- special characters
-
(and 3 more)
Tagged with:
-
i have a script that selects a text file and deletes a line (text input required) in the text file selected i have to make it remove all lines found on a file i name, toRemoveLines.txt it has to remove lines from all text files found in a folder this is the script that has to be modified where it says "select file" it has to be "select folder" where it says "line text input" it has to be all lines from a text file #Include <File.au3> Global $success = False $file_name = FileOpenDialog("Select file", @ScriptDir, "All files (*.*)", 1+4)
-
I'm quite new to AutoIT and I have a very big batch file that I'm trying to completely re-write in Autoit, so far it's been going well but I got stuck with a certain part, hope someone can help. Here's the part of the batch script I'm currently stuck re-creating in AutoIT: :BeginLangMenu if "%OptNum%" gtr "0" goto ShowLangMenu ::Next Section code based on code supplied by Aacini from stackoverflow.com :DefineLangMenu for /L %%D in (1,1,99) do ( &nbs
-
Hi, I need to convert this batch, I follow microsoft specs here https://technet.microsoft.com/en-us/library/bb491005.aspx Ex: start /b 1.exe "path\2.exe" start /b mypgrcommand start /b /wait 3.exe "path\4_.exe" taskkill /F /IM 5.exe Somethings like this... RunWait( @COMSPEC & " /c start /b 1.exe 'path\2.exe' start /b mypgrcommand start /b /wait 3.exe 'path\4_.exe' taskkill /F /IM 5.exe", "", @SW_SHOW ) Thx
-
Hi, Ich hab ein Script für Windows Updates, dass nach dem OOBE aufgerufen werden soll. Run/RunOnce ist daher nicht möglich. Stattdessen möchte ich das Script in den Autostart schreiben lasse. Wenn die OOBE beendet wird und der Administrator angemeldet wird, soll das Update-Script einmalig aufgerufen werden und sich anschl. selbst löschen. Lang rede, kurzer Sinn: Wie kann ich folgendes Script in den Autostart schreiben? RunWait(@ComSpec & " /c " & "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File C:\UA\Scripts\win-updates.ps1 -MaxUpdatesP
-
I am running the tomcat batch file through autoit and need to wait until the below line I get in console output. But when I am trying to read the console output using the ProcessEx UDF, I am getting only the partial output. So, can you please suggest how to handle this.
-
[Help] Convert batch script to Autoit
rinoatwisted posted a topic in AutoIt General Help and Support
Hello guys, im just started in programming and all.. and i wanted to learn autoscript to. Was wondering if any can convert my one-liner batch script to an autoit script - FOR /F %%i IN (names.txt) DO @copy system.act %%i.act So what this does is open and read the file "names.txt" incrementally, and copy a certain file named "system.act" and rename it to each name that is listed on "names.txt" So im trying this on autoit but no idea how to start file manipulation and do command - #include <File.au3> $file = "c:\names.txt" Fil -
Hi everyone. I'm currently working a program that constantly prints out log files through "consolewrite" and the "#AutoIt3Wrapper_Change2CUI=y" wrapper. Part of this program requires me to run a batch script. My issue is the batch script launches from the same window as consolewrite. I need the batch file to be launched through a different window as currently this causes an issue with the logs (which need to be very precise) but also causes the batch file to produce some funny behavior... Does anyone know how I can force the file to run on a second DOS window? Thanks in advance!
- 7 replies
-
- autoit
- consolewrite
-
(and 3 more)
Tagged with:
-
I have several batch files, e.g. echo off echo !DT | ncat 192.168.1.6 80 > scan1.dta This data1.bat works as expected by saving data from !DT command. I have tried several variations from AutoIt ; $DOS = RunWait(@ComSpec & " /k " & "ncat 192.168.1.6 80 <getdata >scan1.dta", "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) ; $DOS = Run(@ComSpec & " /k " & "ncat 192.168.1.6 80 <getdata >scan1.dta", "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) ; $DOS = Run(@ComSpec &
-
I normally launch things silently, but now I want to launch a batch (.cmd) file and have it run as normal displaying it's standard output to the user. Whether I use ShellExecuteWait or RunWait, the command prompt window is displayed, but the output is blank (although I know that the batch file is processing normally because it also produces a log file). If this is because AutoIt is re-directing the standard I/O of the batch file/console window, is there a way I can bypass the I/O redirection? Thanks, TXTechie
-
hi can you tell me how can i run cscript.exe with these arguments using a autoit script currently i'm using a batch file to run this "C:\Windows\System32\cscript.exe" "C:\project\rohit.vbs" "C:\project\fileneame.exe"
-
Here is my latest project, It is a simple code editor that supports all text formats. It will execute batch directly and will also execute maths. It also has the simple feature of shellexecute (POINTLESS!) 1 error I found was that I dont know how to tell if the script* has been saved so it has to ask the user I need to know that for executing batch where the file (if saved/opened) is executed using 'Run($location)' GOTO bottom for latest version Edit*:----the script made in the program. not the code for the program. #include <GUIConstantsEx.au3> #include <WindowsConstants.a
-
Hey GUIs... I mean guys take a look at this script I threw together is 3 minutes Its CMD you type something in and it executes it and returns the results! #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Hotkeyset("{Enter}", "executerun") GUICreate("CMD", 600, 400) GUISetState(@SW_SHOW) $edit = GUIctrlcreateedit("", 0, 0, 600, 400) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd func executerun() $runloop = run(GUIctrlread($edit)) GUIctrlsetdata($edit, $runloop) endfunc Thought you would be interested.