Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- directory = str(input())
- text = 'cd ' + directory
- lines = open('new.bat', 'r').readlines()
- lines[2] = text
- out = open('new.bat', 'w')
- out.writelines(lines)
- out.close()
- call('new.bat')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement