file tag

99 questions


1 answers
368 views
0
What does .readlines()[:5] mean when File I/O and what does sourcefile/targetfile mean

First, the code is as followsSourceFile = open(example_dir/lipsum/lipsum.txt, r)TargetFile = open(copied.txt, w)for line in SourceFile.readlines()[:5]: TargetFile.write(line)TargetFile.close()SourceF...

1 years ago

1 answers
284 views
0
Want to know how to make multiple directory dependencies

Question detailsRegarding the makefile below, I don't know why the following error occurs.If it's one directory, it's successful, but if there are two, what should I do?I just need to write two variab...

1 years ago

1 answers
404 views
0
I want to know what to do with make [source directory cannot contain spaces or colons.]

The presentation console screen is a Linux kernel downloaded from the following site:I'd like to build this into an ISO file and run it in vmware player, but I don't know how to work with the followin...

1 years ago

1 answers
455 views
0
When you start powerhell from the batch, it opens for a moment and closes immediately.

1.Periodic execution of bat file@powershell-NoProfile-ExecutionPolicy unlimited-Command Start-Process PowerShell.exe-Verb runas C:\********\****.ps12.ps1 starts and performs actions with administrator...


3 answers
391 views
0
I want to do the same thing as "SET PATH" for Windows batch files from Python.

Batch files include:I would like to run test.exe from Python without using this batch file.run.batUse the command-line arguments when executing the exe file.SETLOCALSET PATH = %PATH%;..\..\samples\ext...

1 years ago

1 answers
257 views
0
It's about reading Python file names, but I don't think I can even read them

file_name = input (Enter the file name:)word_name = input (Enter an existing word :)new_word_name = input (Enter a new word: )try : with open(file_name, r) as f: lines = f.readline()exceptionExceptio...

1 years ago

1 answers
460 views
0
C Language Text File [Closed]

Do you want to improve this question?Edit your post to clarify the issue you are trying to resolve by adding details.Closed to 9 months ago9 months agoPlease tell me how to display a specific line fro...

1 years ago

3 answers
79 views
0
I want to use robocopy in the bat file and copy a file with a name that contains spaces.

As the title suggests, I would like to copy the data using robocopy in the bat file.As I want to skip errors and leave logs, I am thinking of using robocopy to copy files.What is currently being doneC...

1 years ago

1 answers
133 views
0
I want to use robocopy in the bat file and print the data copy result to the LOG file.

I am thinking of using robocopy in the bat file and extracting a file name containing one character and copying it to another folder.I also want to copy the file name with blank space, so I wrote the ...

1 years ago

2 answers
135 views
0
I would like to make a program to log and compare on bat every day.

A list of files in a storage is retrieved daily as the file name [yyyymmdd.log] log and Compare today's and yesterday's logs, and create a program that extracts differences that are in the log yesterd...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.