Skip to main content
added 20 characters in body
Source Link
IAmMilinPatel
  • 7.8k
  • 7
  • 43
  • 68

import win32com.client

shell = win32com.client.Dispatch("WScript.Shell")
shell.Sendkeys("C:\text.txt")
shell.Sendkeys("~")

import win32com.client  

shell = win32com.client.Dispatch("WScript.Shell")  
shell.Sendkeys("C:\text.txt")  
shell.Sendkeys("~")  

will resolve the issue

import win32com.client

shell = win32com.client.Dispatch("WScript.Shell")
shell.Sendkeys("C:\text.txt")
shell.Sendkeys("~")

will resolve the issue

import win32com.client  

shell = win32com.client.Dispatch("WScript.Shell")  
shell.Sendkeys("C:\text.txt")  
shell.Sendkeys("~")  

will resolve the issue

Source Link

import win32com.client

shell = win32com.client.Dispatch("WScript.Shell")
shell.Sendkeys("C:\text.txt")
shell.Sendkeys("~")

will resolve the issue