Things like
Quote
just don't work. Even is the dir "setup" is there it seems to need a real path to the file/dir.
Thanks.
Posted 25 January 2006 - 06:06 AM
Quote
Posted 25 January 2006 - 09:30 PM
If @WorkingDir <> @ScriptDir Then FileChangeDir(@ScriptDir)
FileCopy("setup\file.exe","C:\windows\system32\")
FileCopy(@ScriptDir & "\setup\file.exe","C:\windows\system32\")
Posted 25 January 2006 - 09:59 PM
Posted 25 January 2006 - 10:21 PM
Dumpy Dooby, on Jan 26 2006, 01:59 PM, said:
FileCopy(@ScriptDir & "\setup\file.exe", @SystemDir & '\')
Posted 28 January 2006 - 07:27 AM
Posted 28 January 2006 - 09:46 PM
bigbroantonio, on Jan 28 2006, 11:27 PM, said:
Posted 29 January 2006 - 12:04 PM
bigbroantonio, on Jan 28 2006, 05:27 AM, said:
Posted 29 January 2006 - 12:18 PM
For $drive = 65 to 90 If FileExists(chr($drive) & ":\WIN51IP.SP2") Then $OEM = chr($drive) & ":\OEM" Next
Posted 30 January 2006 - 08:25 AM
RogueSpear, on Jan 30 2006, 04:18 AM, said:
For $drive = 65 to 90 If FileExists(chr($drive) & ":\WIN51IP.SP2") Then $OEM = chr($drive) & ":\OEM" Next
$variable = _Drive()
MsgBox(0, 'Drive Letter', $variable)
Func _Drive()
$drive = DriveGetDrive('CDROM')
If Not @error Then
For $i = 1 To $drive[0]
If FileExists($drive[$i] & '\WIN51IP.SP2') Then Return $drive[$i] & '\$OEM$'
Next
EndIf
EndFunc