Jump to content

alucard

Members
  • Posts

    10
  • Joined

  • Last visited

alucard's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi , I want to make a script than can scan a directory and return the name file the most recent. Can you help me please. thanks a lot
  2. Hi, does it exist a command to write a string to a specific line in a text file thanks
  3. Hi, Sorry for my bad English. I want to know how, in a script, write in a .au3 file and compile it. I don't find a command line to compile a script. thank you
  4. hi , I want to get drive information. This script run well : $var = DriveGetDrive( "all" ) If NOT @error Then For $i = 1 to $var[0] $variable = DriveGetLabel( $var[$i] ) if $variable = "sauvegarde" then MsgBox(4096,"INFO","Drive " & $var[$i] & "->" & $variable) endif Next EndIf But when i want to get drive letter i have a problem to execute script Dim $monlecteur $var = DriveGetDrive( "all" ) If NOT @error Then For $i = 1 to $var[0] $variable = DriveGetLabel( $var[$i] ) if $variable = "sauvegarde" then MsgBox(4096,"INFO","Drive " & $var[$i] & "->" & $variable) $monlecteur = $var[$i] MsgBox(4096,"INFO","Drive " $MonLecteur) endif Next EndIf Thank you.h
  5. in fact i am an administrator, We have roaming user and they hort Help and they have got thinkpad.They have also station and they can plug their thinkpad on the station. the station have a drive of backup and i want make a script that can detect if the drive is here and if it's right that can copy user's data on this drive.
  6. Hi, i want to know if it's possible to write a script who can detect if a drive exist? I see a function "fileexists" but not "driveexists" so .... thank you
  7. Hi, i want make a script to change temporarly a user in administrator for he can, for example , install a software. as it possible ?? thanks
  8. thanks your solution run very well bye
  9. FileWrite ( "onexit.bat", "delete " & @ScriptFullPath ) Func OnAutoItExit() Run ( "onexit.bat", "", @SW_HIDE ) EndFunc This solutionis good but it don't run well because when script write in the .bat file , it don't write "c:\....................."
  10. hi, sorry for my bad english I would like to make a script and convert it in a .exe then when i lauch the .exe , it run the script but at the end , i want it delete itself automatically. How i can make that. thank you
×
×
  • Create New...