So I am trying to Map a network drive and install software from the Map network drive!
If I do not compile the script it works good (.AHK)!
But after I compile it it will not work(.EXE)!
This is one of my first scripts I am a newbe so any help is much appreciated!
Script:
;Made by Mr. Jonas Voll June 13 2012 with AutoHotKey! ;This is to map a drive for the installation of Mass500 & install the program and all needed files! CMD=net use B: \\envfs2\installs$ Run, %CMD% ;Creates the map drive with the drive letter of B! RunWait,B:\Mas500_shr\Mas500 7.3\Client\setup.exe, Max, ;Core install software for Mass 500! RunWait,B:\Mas500_shr\Mas500 7.3\Updates\client\730Feb10UpdateC.exe, Max, ;Installs client Update! FileCopy, B:\Mas500_shr\Mas500 7.3\Updates\Hotfixes\unreg.bat, C:\Program Files\Sage Software\Sage MAS 500 Client\Managed Applications, 0 ;Copies' .Bat to host pc! ;This line will need to be run after you have installed! ;This will not work if you do not have all the directories created! ;This folder already contains the file Unreg.bat at the present time I do not know how to tell the two (Old/New) apart! RunWait,B:\Mas500_shr\Mas500 7.3\Envision\ParentCustomer\CustParentMaintSetup.msi, Max, ;Installs CustParentMaintSetup! CMD=net use B: /delete Run, %cmd% ;This will delete the mapped drive!




