ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class WindowsExplorer.WindowsExplorer(system, config)

This is an abstract parent for implementing <no title> using Windows Explorer.

Parameters:

  • system: the <no title> object connecting to the target system

  • config: the <no title> object defining this user

copy_selected()

Given that the files are already selected, copy them

cut_selected()

Given that the files are already selected, cut them

delete_selected()

Delete the previously selected files.

navigate_to(path)

Navigate to the given directory, which can be a path include a drive identifier.

Parameters:

  • path: A string path to the directory/folder to open

Examples:

  • user.FileManager.navigate_to( r”windowssystem32” )

paste()

Paste the previously selected files to the current location

select_files(files)

Select the given list of files, using ctrl and click

Parameters:

  • files: a list of strings containing the displayed names of files to select, if only a single file is to be selected it can be passed as a string not a list

Return: the number of files seeminly selected

Examples:

  • user.FileManager.select_files( “explorer.exe” )

  • user.FileManager.select_files( [ ‘keys.doc’, ‘names.xls’ ] )